From 1d8da1d51aaa87084c5c0d323615c9d369a7a8b8 Mon Sep 17 00:00:00 2001 From: Sudheer Shanka Date: Wed, 19 Oct 2016 11:10:26 -0700 Subject: [PATCH] Update usage of IMountService constants. Bug: 30977067 Test: Existing tests passing. Change-Id: I9430b1153d277f312aff95e42adad79ba2d92500 --- src/com/android/settings/CryptKeeper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java index 4214343ef70..826c20be169 100644 --- a/src/com/android/settings/CryptKeeper.java +++ b/src/com/android/settings/CryptKeeper.java @@ -293,11 +293,11 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList try { Log.d(TAG, "Validating encryption state."); state = service.getEncryptionState(); - if (state == IMountService.ENCRYPTION_STATE_NONE) { + if (state == StorageManager.ENCRYPTION_STATE_NONE) { Log.w(TAG, "Unexpectedly in CryptKeeper even though there is no encryption."); return true; // Unexpected, but fine, I guess... } - return state == IMountService.ENCRYPTION_STATE_OK; + return state == StorageManager.ENCRYPTION_STATE_OK; } catch (RemoteException e) { Log.w(TAG, "Unable to get encryption state properly"); return true; @@ -310,7 +310,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList if (Boolean.FALSE.equals(result)) { Log.w(TAG, "Incomplete, or corrupted encryption detected. Prompting user to wipe."); mEncryptionGoneBad = true; - mCorrupt = state == IMountService.ENCRYPTION_STATE_ERROR_CORRUPT; + mCorrupt = state == StorageManager.ENCRYPTION_STATE_ERROR_CORRUPT; } else { Log.d(TAG, "Encryption state validated. Proceeding to configure UI"); }