Use the StorageManager constant for the PatternVisible key.
Bug: 17659622 Change-Id: Ibd44f5c619f61764ef4e4a3447f241e2f73339b5
This commit is contained in:
@@ -443,8 +443,8 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
|||||||
try {
|
try {
|
||||||
final IMountService service = getMountService();
|
final IMountService service = getMountService();
|
||||||
type = service.getPasswordType();
|
type = service.getPasswordType();
|
||||||
owner_info = service.getField("OwnerInfo");
|
owner_info = service.getField(StorageManager.OWNER_INFO_KEY);
|
||||||
pattern_visible = !("0".equals(service.getField("PatternVisible")));
|
pattern_visible = !("0".equals(service.getField(StorageManager.PATTERN_VISIBLE_KEY)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e(TAG, "Error calling mount service " + e);
|
Log.e(TAG, "Error calling mount service " + e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user