Merge "Fix incorrect comparison" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2a5707874b
@@ -258,7 +258,7 @@ public class ChooseLockGeneric extends PreferenceActivity {
|
|||||||
*/
|
*/
|
||||||
private int upgradeQualityForEncryption(int quality) {
|
private int upgradeQualityForEncryption(int quality) {
|
||||||
// Don't upgrade quality for secondary users. Encryption requirements don't apply.
|
// Don't upgrade quality for secondary users. Encryption requirements don't apply.
|
||||||
if (Process.myUserHandle() != UserHandle.OWNER) return quality;
|
if (!Process.myUserHandle().equals(UserHandle.OWNER)) return quality;
|
||||||
int encryptionStatus = mDPM.getStorageEncryptionStatus();
|
int encryptionStatus = mDPM.getStorageEncryptionStatus();
|
||||||
boolean encrypted = (encryptionStatus == DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE)
|
boolean encrypted = (encryptionStatus == DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE)
|
||||||
|| (encryptionStatus == DevicePolicyManager.ENCRYPTION_STATUS_ACTIVATING);
|
|| (encryptionStatus == DevicePolicyManager.ENCRYPTION_STATUS_ACTIVATING);
|
||||||
|
Reference in New Issue
Block a user