am 262d5bd9: Don\'t override EXTRA_SHOW_FRAGMENT if exists
* commit '262d5bd9f964d7fb18d96ec2ccf821b042aa3a3a': Don't override EXTRA_SHOW_FRAGMENT if existsmain
commit
c35bca6856
|
@ -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();
|
||||||
|
final String fragment = intent.getStringExtra(EXTRA_SHOW_FRAGMENT);
|
||||||
|
if (fragment == null) {
|
||||||
intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
|
intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
|
||||||
|
}
|
||||||
intent.putExtra(EXTRA_NO_HEADERS, true);
|
intent.putExtra(EXTRA_NO_HEADERS, true);
|
||||||
return intent;
|
return intent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue