Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
    }