Merge "Hide notification before tie managed profile lock" into nyc-dev

am: fcc38e6c35

* commit 'fcc38e6c35be0dd68d722b7398cf2fb66c1c0d92':
  Hide notification before tie managed profile lock

Change-Id: I57c3917ef0ccff555b340085bb1176a7d4ef6e0b
This commit is contained in:
Ricky Wai
2016-05-10 20:19:29 +00:00
committed by android-build-merger

View File

@@ -340,8 +340,9 @@ public class LockSettingsService extends ILockSettings.Stub {
}
public void onUnlockUser(int userId) {
tieManagedProfileLockIfNecessary(userId, null);
// Hide notification first, as tie managed profile lock takes time
hideEncryptionNotification(new UserHandle(userId));
tieManagedProfileLockIfNecessary(userId, null);
// Now we have unlocked the parent user we should show notifications
// about any profiles that exist.