Merge "Handle auto-unlocked managed profiles." into nyc-mr1-dev
This commit is contained in:
@@ -352,9 +352,15 @@ final class UserController {
|
|||||||
final UserInfo info = getUserInfo(userId);
|
final UserInfo info = getUserInfo(userId);
|
||||||
if (!Objects.equals(info.lastLoggedInFingerprint, Build.FINGERPRINT)) {
|
if (!Objects.equals(info.lastLoggedInFingerprint, Build.FINGERPRINT)) {
|
||||||
// Suppress double notifications for managed profiles that
|
// Suppress double notifications for managed profiles that
|
||||||
// were unlocked automatically (no challenge token required)
|
// were unlocked automatically as part of their parent user
|
||||||
// as part of their parent user being unlocked.
|
// being unlocked.
|
||||||
final boolean quiet = info.isManagedProfile() && !uss.tokenProvided;
|
final boolean quiet;
|
||||||
|
if (info.isManagedProfile()) {
|
||||||
|
quiet = !uss.tokenProvided
|
||||||
|
|| !mLockPatternUtils.isSeparateProfileChallengeEnabled(userId);
|
||||||
|
} else {
|
||||||
|
quiet = false;
|
||||||
|
}
|
||||||
new PreBootBroadcaster(mService, userId, null, quiet) {
|
new PreBootBroadcaster(mService, userId, null, quiet) {
|
||||||
@Override
|
@Override
|
||||||
public void onFinished() {
|
public void onFinished() {
|
||||||
|
|||||||
Reference in New Issue
Block a user