KeyStore: stop using state()

Change-Id: Ia8fc945666c59c0b9a9bd6f890cc2a6b8859e1d4
This commit is contained in:
Kenny Root
2013-02-14 10:27:22 -08:00
parent 5c879e48ed
commit ca714d8d0c
3 changed files with 5 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ public class VpnSettings extends SettingsPreferenceFragment implements
super.onResume();
// Check KeyStore here, so others do not need to deal with it.
if (mKeyStore.state() != KeyStore.State.UNLOCKED) {
if (!mKeyStore.isUnlocked()) {
if (!mUnlocking) {
// Let us unlock KeyStore. See you later!
Credentials.getInstance().unlock(getActivity());