Skip to content
Snippets Groups Projects
Commit 262d5bd9 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Don't override EXTRA_SHOW_FRAGMENT if exists

Bug: 8541190
Change-Id: I37d3de12558efd55f157389d2e0b51fc83dc5da1
parent 10af4b6e
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,10 @@ public final class SettingsActivity extends PreferenceActivity { ...@@ -25,7 +25,10 @@ public final class SettingsActivity extends PreferenceActivity {
@Override @Override
public Intent getIntent() { public Intent getIntent() {
final Intent intent = super.getIntent(); final Intent intent = super.getIntent();
intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT); final String fragment = intent.getStringExtra(EXTRA_SHOW_FRAGMENT);
if (fragment == null) {
intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
}
intent.putExtra(EXTRA_NO_HEADERS, true); intent.putExtra(EXTRA_NO_HEADERS, true);
return intent; return intent;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment