Loading res/values/config.xml +1 −0 Original line number Diff line number Diff line Loading @@ -90,4 +90,5 @@ <bool name="config_regional_hotspot_show_maximum_connection_enable">false</bool> <string-array translatable="false" name="carrier_operator_list"> </string-array> <bool name="config_regional_security_show_password_enable">false</bool> </resources> src/com/android/settings/SecuritySettings.java +13 −2 Original line number Diff line number Diff line Loading @@ -112,6 +112,8 @@ public class SecuritySettings extends SettingsPreferenceFragment private static final String PACKAGE_MIME_TYPE = "application/vnd.android.package-archive"; private static final String KEY_TRUST_AGENT = "trust_agent"; private static final String KEY_SCREEN_PINNING = "screen_pinning_settings"; private static final int PASSWORD_VISIBLE = 1; private static final int PASSWORD_INVISIBLE = 0; // These switch preferences need special handling since they're not all stored in Settings. private static final String SWITCH_PREFERENCE_KEYS[] = { Loading Loading @@ -602,8 +604,7 @@ public class SecuritySettings extends SettingsPreferenceFragment updateUnificationPreference(); if (mShowPassword != null) { mShowPassword.setChecked(Settings.System.getInt(getContentResolver(), Settings.System.TEXT_SHOW_PASSWORD, 1) != 0); mShowPassword.setChecked(isPasswordVisible()); } if (mResetCredentials != null && !mResetCredentials.isDisabledByAdmin()) { Loading @@ -611,6 +612,16 @@ public class SecuritySettings extends SettingsPreferenceFragment } } private boolean isPasswordVisible() { int defaultValue = PASSWORD_VISIBLE ; if (getResources().getBoolean( R.bool.config_regional_security_show_password_enable)) { defaultValue = PASSWORD_INVISIBLE ; } return Settings.System.getInt(getContentResolver(), Settings.System.TEXT_SHOW_PASSWORD, defaultValue) != 0 ; } private void updateUnificationPreference() { if (mUnifyProfile != null) { mUnifyProfile.setChecked(!mLockPatternUtils.isSeparateProfileChallengeEnabled( Loading Loading
res/values/config.xml +1 −0 Original line number Diff line number Diff line Loading @@ -90,4 +90,5 @@ <bool name="config_regional_hotspot_show_maximum_connection_enable">false</bool> <string-array translatable="false" name="carrier_operator_list"> </string-array> <bool name="config_regional_security_show_password_enable">false</bool> </resources>
src/com/android/settings/SecuritySettings.java +13 −2 Original line number Diff line number Diff line Loading @@ -112,6 +112,8 @@ public class SecuritySettings extends SettingsPreferenceFragment private static final String PACKAGE_MIME_TYPE = "application/vnd.android.package-archive"; private static final String KEY_TRUST_AGENT = "trust_agent"; private static final String KEY_SCREEN_PINNING = "screen_pinning_settings"; private static final int PASSWORD_VISIBLE = 1; private static final int PASSWORD_INVISIBLE = 0; // These switch preferences need special handling since they're not all stored in Settings. private static final String SWITCH_PREFERENCE_KEYS[] = { Loading Loading @@ -602,8 +604,7 @@ public class SecuritySettings extends SettingsPreferenceFragment updateUnificationPreference(); if (mShowPassword != null) { mShowPassword.setChecked(Settings.System.getInt(getContentResolver(), Settings.System.TEXT_SHOW_PASSWORD, 1) != 0); mShowPassword.setChecked(isPasswordVisible()); } if (mResetCredentials != null && !mResetCredentials.isDisabledByAdmin()) { Loading @@ -611,6 +612,16 @@ public class SecuritySettings extends SettingsPreferenceFragment } } private boolean isPasswordVisible() { int defaultValue = PASSWORD_VISIBLE ; if (getResources().getBoolean( R.bool.config_regional_security_show_password_enable)) { defaultValue = PASSWORD_INVISIBLE ; } return Settings.System.getInt(getContentResolver(), Settings.System.TEXT_SHOW_PASSWORD, defaultValue) != 0 ; } private void updateUnificationPreference() { if (mUnifyProfile != null) { mUnifyProfile.setChecked(!mLockPatternUtils.isSeparateProfileChallengeEnabled( Loading