OSDN Git Service

Fix race leading to spuriously disabled trust agents
authorAdrian Roos <roosa@google.com>
Fri, 5 Dec 2014 17:47:12 +0000 (18:47 +0100)
committerAdrian Roos <roosa@google.com>
Fri, 5 Dec 2014 17:47:20 +0000 (18:47 +0100)
commit16809b1ad7262ee95d647b7655c4adf8cdeb75ab
tree27e0c5f06561dedb086ce472a1aa9667560554c2
parent3f5fd1febae34976bdc3f03b44eaec99bbf9703b
Fix race leading to spuriously disabled trust agents

If TrustManagerService is able to refresh the trust agents before
the Settings activity gets a chance to reenable the lock pattern,
the TrustManagerService won't see a secure credential and won't
load any agents. This was introduced when we switched to isSecure
instead of getKeyguardStoredPasswordQuality. The latter ignored
the lockPatternEnabled flag.

Bug: 18596036
Change-Id: I2734899f7684916fc84bc3a07edca29310887103
src/com/android/settings/ChooseLockPattern.java