Merge "Fix activity weirdness by doing the right thing" into nyc-dev
am: db26d19302
* commit 'db26d19302ea7b0bd169907809b58044e7fbff10':
Fix activity weirdness by doing the right thing
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user