Fix Clear Credentials item

This should be enabled whenever there is a credential in the keystore
since there can be unencrypted credentials in there now.

Bug: 8651830
Change-Id: I52a8262011d744d782b35d97deaabcba3b23f32b
This commit is contained in:
Kenny Root
2013-04-22 13:41:18 -07:00
parent fce4501512
commit c4372c3e3f

View File

@@ -452,7 +452,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
}
if (mResetCredentials != null) {
mResetCredentials.setEnabled(!mKeyStore.isUnlocked());
mResetCredentials.setEnabled(!mKeyStore.isEmpty());
}
}