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

am: 24f6a0eebc

* commit '24f6a0eebcd11652e4ed80b1b56a9754f5d9db60':
  Fix activity weirdness by doing the right thing
This commit is contained in:
Jason Monk
2016-02-10 18:14:08 +00:00
committed by android-build-merger

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