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

Commit 620940c8 authored by Jason Monk's avatar Jason Monk Committed by The Android Automerger
Browse files

Fix activity weirdness by doing the right thing

Bug: 27091837
Change-Id: I983bcae15871b184e670a6baa819263e0ad58973
parent e4739b3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -625,8 +625,8 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF

    public void finish() {
        Activity activity = getActivity();
        if (activity != null) {
            activity.onBackPressed();
        if (activity != null && !activity.getFragmentManager().popBackStackImmediate()) {
            finish();
        }
    }