* commit 'c35bca685689ff6430e7a9393af64c74112bf677': Don't override EXTRA_SHOW_FRAGMENT if exists
This commit is contained in:
commit
9a0f6ef847
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,10 @@ public final class SettingsActivity extends PreferenceActivity {
|
|||
@Override
|
||||
public Intent 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);
|
||||
return intent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue