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.

(cherry picked from commit c4372c3e3f)

Bug: 8651830
Change-Id: Ie06f20cf90f5a359975cb30d67052f8867b429b9
This commit is contained in:
Kenny Root
2013-04-22 13:41:18 -07:00
parent c1e3983b31
commit 8eb42bd2e0

View File

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