Don't override EXTRA_SHOW_FRAGMENT if exists
Bug: 8541190 Change-Id: I37d3de12558efd55f157389d2e0b51fc83dc5da1main
parent
10af4b6e45
commit
262d5bd9f9
|
@ -25,7 +25,10 @@ public final class SettingsActivity extends PreferenceActivity {
|
|||
@Override
|
||||
public Intent getIntent() {
|
||||
final Intent intent = super.getIntent();
|
||||
final String fragment = intent.getStringExtra(EXTRA_SHOW_FRAGMENT);
|
||||
if (fragment == null) {
|
||||
intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
|
||||
}
|
||||
intent.putExtra(EXTRA_NO_HEADERS, true);
|
||||
return intent;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue