Fix activity weirdness by doing the right thing

Bug: 27091837
Change-Id: I983bcae15871b184e670a6baa819263e0ad58973
This commit is contained in:
Jason Monk
2016-02-10 12:55:37 -05:00
parent d119f50314
commit 30e9fc870f

View File

@@ -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();
}
}