Fixes back button on action bar on some fragments.

SettingsPreferenceFragment has this already set so that the drawer
layout will work when the menu doesn't exist. However, some fragments
are not preference fragments, and we need to set setHasOptionsMenu
manually.

bug:27879503
Change-Id: I6faadeb56dab00af611ac413109800822038c66d
This commit is contained in:
Udam Saini
2016-03-28 16:35:13 -07:00
parent 1997f76cfc
commit 0708d9e119
10 changed files with 41 additions and 11 deletions

View File

@@ -50,7 +50,7 @@ import static com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
*
* This is the confirmation screen.
*/
public class ResetNetworkConfirm extends InstrumentedFragment {
public class ResetNetworkConfirm extends OptionsMenuFragment {
private View mContentView;
private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;