Merge "Fix activity weirdness by doing the right thing" into nyc-dev

This commit is contained in:
Jason Monk
2016-02-10 17:57:28 +00:00
committed by Android (Google) Code Review

View File

@@ -625,8 +625,8 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
public void finish() { public void finish() {
Activity activity = getActivity(); Activity activity = getActivity();
if (activity != null) { if (activity != null && !activity.getFragmentManager().popBackStackImmediate()) {
activity.onBackPressed(); finish();
} }
} }