Merge "Fix cannot unlock keyguard when work challege is unified and work mode is off" into nyc-dev

This commit is contained in:
Ricky Wai
2016-04-15 13:44:52 +00:00
committed by Android (Google) Code Review

View File

@@ -895,7 +895,10 @@ final class UserController {
synchronized (mService) {
// Bail if already running unlocked, or if not running at all
final UserState uss = mStartedUsers.get(userId);
if (uss == null) return false;
if (uss == null) {
progress.finish();
return false;
}
switch (uss.state) {
case STATE_RUNNING_UNLOCKING:
case STATE_RUNNING_UNLOCKED: