mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Passing activityClassName when setting unlock controller
Bug: 302621267 Test: Presubmit Flag: N/A Change-Id: I84f9e404dc2e0654d38dd24c08e82fa5d103a067
This commit is contained in:
@@ -137,6 +137,7 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
private ISplitSelectListener mSplitSelectListener;
|
||||
private IStartingWindowListener mStartingWindowListener;
|
||||
private ILauncherUnlockAnimationController mLauncherUnlockAnimationController;
|
||||
private String mLauncherActivityClass;
|
||||
private IRecentTasksListener mRecentTasksListener;
|
||||
private IUnfoldTransitionListener mUnfoldAnimationListener;
|
||||
private IDesktopTaskListener mDesktopTaskListener;
|
||||
@@ -248,7 +249,8 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
registerSplitScreenListener(mSplitScreenListener);
|
||||
registerSplitSelectListener(mSplitSelectListener);
|
||||
setStartingWindowListener(mStartingWindowListener);
|
||||
setLauncherUnlockAnimationController(mLauncherUnlockAnimationController);
|
||||
setLauncherUnlockAnimationController(
|
||||
mLauncherActivityClass, mLauncherUnlockAnimationController);
|
||||
new LinkedHashMap<>(mRemoteTransitions).forEach(this::registerRemoteTransition);
|
||||
setupTransactionQueue();
|
||||
registerRecentTasksListener(mRecentTasksListener);
|
||||
@@ -1109,11 +1111,11 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
* changes).
|
||||
*/
|
||||
public void setLauncherUnlockAnimationController(
|
||||
ILauncherUnlockAnimationController controller) {
|
||||
String activityClass, ILauncherUnlockAnimationController controller) {
|
||||
if (mSysuiUnlockAnimationController != null) {
|
||||
try {
|
||||
mSysuiUnlockAnimationController.setLauncherUnlockController(controller);
|
||||
|
||||
mSysuiUnlockAnimationController.setLauncherUnlockController(
|
||||
activityClass, controller);
|
||||
if (controller != null) {
|
||||
controller.dispatchSmartspaceStateToSysui();
|
||||
}
|
||||
@@ -1121,7 +1123,7 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
Log.w(TAG, "Failed call setLauncherUnlockAnimationController", e);
|
||||
}
|
||||
}
|
||||
|
||||
mLauncherActivityClass = activityClass;
|
||||
mLauncherUnlockAnimationController = controller;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user