Merge "Initializing ActivityManagerWrapper before device unlock" into ub-launcher3-qt-dev

This commit is contained in:
TreeHugger Robot
2019-06-12 18:22:12 +00:00
committed by Android (Google) Code Review

View File

@@ -282,6 +282,7 @@ public class TouchInteractionService extends Service implements
// Everything else should be initialized in initWhenUserUnlocked() below.
mKM = getSystemService(KeyguardManager.class);
mMainChoreographer = Choreographer.getInstance();
mAM = ActivityManagerWrapper.getInstance();
if (UserManagerCompat.getInstance(this).isUserUnlocked(Process.myUserHandle())) {
initWhenUserUnlocked();
@@ -408,7 +409,6 @@ public class TouchInteractionService extends Service implements
}
private void initWhenUserUnlocked() {
mAM = ActivityManagerWrapper.getInstance();
mRecentsModel = RecentsModel.INSTANCE.get(this);
mOverviewComponentObserver = new OverviewComponentObserver(this);