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:
@@ -50,7 +50,7 @@ import com.android.settings.fingerprint.FingerprintUiHelper;
|
||||
/**
|
||||
* Base fragment to be shared for PIN/Pattern/Password confirmation fragments.
|
||||
*/
|
||||
public abstract class ConfirmDeviceCredentialBaseFragment extends InstrumentedFragment
|
||||
public abstract class ConfirmDeviceCredentialBaseFragment extends OptionsMenuFragment
|
||||
implements FingerprintUiHelper.Callback {
|
||||
|
||||
public static final String PACKAGE = "com.android.settings";
|
||||
|
Reference in New Issue
Block a user