mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Initializing ActivityManagerWrapper before device unlock" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a273eafec4
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user