Fixes stack overflow on some settings preferences
bug:27130222 Change-Id: If273720591ca9a4d10143b36b63eb839e4fa0a4a
This commit is contained in:
@@ -626,7 +626,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
|
||||
public void finish() {
|
||||
Activity activity = getActivity();
|
||||
if (activity != null && !activity.getFragmentManager().popBackStackImmediate()) {
|
||||
finish();
|
||||
activity.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user