Micro-cleanup in password settings
Removed unused constant and member that was set and retained across instances but never actually used. Test: manual, set password Bug: 30558331 Change-Id: I575bf1f0508b9441b220641715e9ca7372d9b32c
This commit is contained in:
@@ -101,8 +101,6 @@ public class ChooseLockGeneric extends SettingsActivity {
|
|||||||
private static final String WAITING_FOR_CONFIRMATION = "waiting_for_confirmation";
|
private static final String WAITING_FOR_CONFIRMATION = "waiting_for_confirmation";
|
||||||
public static final String MINIMUM_QUALITY_KEY = "minimum_quality";
|
public static final String MINIMUM_QUALITY_KEY = "minimum_quality";
|
||||||
public static final String HIDE_DISABLED_PREFS = "hide_disabled_prefs";
|
public static final String HIDE_DISABLED_PREFS = "hide_disabled_prefs";
|
||||||
public static final String ENCRYPT_REQUESTED_QUALITY = "encrypt_requested_quality";
|
|
||||||
public static final String ENCRYPT_REQUESTED_DISABLED = "encrypt_requested_disabled";
|
|
||||||
public static final String TAG_FRP_WARNING_DIALOG = "frp_warning_dialog";
|
public static final String TAG_FRP_WARNING_DIALOG = "frp_warning_dialog";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -138,8 +136,6 @@ public class ChooseLockGeneric extends SettingsActivity {
|
|||||||
private long mChallenge;
|
private long mChallenge;
|
||||||
private boolean mPasswordConfirmed = false;
|
private boolean mPasswordConfirmed = false;
|
||||||
private boolean mWaitingForConfirmation = false;
|
private boolean mWaitingForConfirmation = false;
|
||||||
private int mEncryptionRequestQuality;
|
|
||||||
private boolean mEncryptionRequestDisabled;
|
|
||||||
private boolean mForChangeCredRequiredForBoot = false;
|
private boolean mForChangeCredRequiredForBoot = false;
|
||||||
private String mUserPassword;
|
private String mUserPassword;
|
||||||
private LockPatternUtils mLockPatternUtils;
|
private LockPatternUtils mLockPatternUtils;
|
||||||
@@ -193,9 +189,6 @@ public class ChooseLockGeneric extends SettingsActivity {
|
|||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
mPasswordConfirmed = savedInstanceState.getBoolean(PASSWORD_CONFIRMED);
|
mPasswordConfirmed = savedInstanceState.getBoolean(PASSWORD_CONFIRMED);
|
||||||
mWaitingForConfirmation = savedInstanceState.getBoolean(WAITING_FOR_CONFIRMATION);
|
mWaitingForConfirmation = savedInstanceState.getBoolean(WAITING_FOR_CONFIRMATION);
|
||||||
mEncryptionRequestQuality = savedInstanceState.getInt(ENCRYPT_REQUESTED_QUALITY);
|
|
||||||
mEncryptionRequestDisabled = savedInstanceState.getBoolean(
|
|
||||||
ENCRYPT_REQUESTED_DISABLED);
|
|
||||||
if (mUserPassword == null) {
|
if (mUserPassword == null) {
|
||||||
mUserPassword = savedInstanceState.getString(
|
mUserPassword = savedInstanceState.getString(
|
||||||
ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD);
|
ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD);
|
||||||
@@ -298,8 +291,6 @@ public class ChooseLockGeneric extends SettingsActivity {
|
|||||||
&& LockPatternUtils.isDeviceEncryptionEnabled()
|
&& LockPatternUtils.isDeviceEncryptionEnabled()
|
||||||
&& !LockPatternUtils.isFileEncryptionEnabled()
|
&& !LockPatternUtils.isFileEncryptionEnabled()
|
||||||
&& !dpm.getDoNotAskCredentialsOnBoot()) {
|
&& !dpm.getDoNotAskCredentialsOnBoot()) {
|
||||||
mEncryptionRequestQuality = quality;
|
|
||||||
mEncryptionRequestDisabled = disabled;
|
|
||||||
// Get the intent that the encryption interstitial should start for creating
|
// Get the intent that the encryption interstitial should start for creating
|
||||||
// the new unlock method.
|
// the new unlock method.
|
||||||
Intent unlockMethodIntent = getIntentForUnlockMethod(quality);
|
Intent unlockMethodIntent = getIntentForUnlockMethod(quality);
|
||||||
@@ -398,8 +389,6 @@ public class ChooseLockGeneric extends SettingsActivity {
|
|||||||
// Saved so we don't force user to re-enter their password if configuration changes
|
// Saved so we don't force user to re-enter their password if configuration changes
|
||||||
outState.putBoolean(PASSWORD_CONFIRMED, mPasswordConfirmed);
|
outState.putBoolean(PASSWORD_CONFIRMED, mPasswordConfirmed);
|
||||||
outState.putBoolean(WAITING_FOR_CONFIRMATION, mWaitingForConfirmation);
|
outState.putBoolean(WAITING_FOR_CONFIRMATION, mWaitingForConfirmation);
|
||||||
outState.putInt(ENCRYPT_REQUESTED_QUALITY, mEncryptionRequestQuality);
|
|
||||||
outState.putBoolean(ENCRYPT_REQUESTED_DISABLED, mEncryptionRequestDisabled);
|
|
||||||
if (mUserPassword != null) {
|
if (mUserPassword != null) {
|
||||||
outState.putString(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD, mUserPassword);
|
outState.putString(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD, mUserPassword);
|
||||||
}
|
}
|
||||||
|
@@ -45,9 +45,6 @@ public enum ScreenLockType {
|
|||||||
DevicePolicyManager.PASSWORD_QUALITY_MANAGED,
|
DevicePolicyManager.PASSWORD_QUALITY_MANAGED,
|
||||||
"unlock_set_managed");
|
"unlock_set_managed");
|
||||||
|
|
||||||
private static final ScreenLockType MIN_QUALITY = ScreenLockType.NONE;
|
|
||||||
private static final ScreenLockType MAX_QUALITY = ScreenLockType.MANAGED;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default quality of the type of lock used. For example, in the case of PIN, the default
|
* The default quality of the type of lock used. For example, in the case of PIN, the default
|
||||||
* quality if PASSWORD_QUALITY_NUMERIC, while the highest quality is
|
* quality if PASSWORD_QUALITY_NUMERIC, while the highest quality is
|
||||||
|
Reference in New Issue
Block a user