Merge "Fix issue where System UI crashing resulted in no unlock animation." into tm-qpr-dev am: 778f8c1833 am: 88cbc4e055

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18779947

Change-Id: I6d10be2b3dca90c4b93ebbc3202ff7ce2b369c32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot authored and Automerger Merge Worker committed 2022-07-27 22:17:48 +00:00
commit 20e02f06b1
1 file changed
+6 -8
@@ -98,7 +98,7 @@ public class SystemUiProxy implements ISystemUiProxy, DisplayController.DisplayI
private IPipAnimationListener mPipAnimationListener;
private ISplitScreenListener mSplitScreenListener;
private IStartingWindowListener mStartingWindowListener;
private ILauncherUnlockAnimationController mPendingLauncherUnlockAnimationController;
private ILauncherUnlockAnimationController mLauncherUnlockAnimationController;
private IRecentTasksListener mRecentTasksListener;
private final ArrayList<RemoteTransitionCompat> mRemoteTransitions = new ArrayList<>();
private IOnBackInvokedCallback mBackToLauncherCallback;
@@ -193,10 +193,8 @@ public class SystemUiProxy implements ISystemUiProxy, DisplayController.DisplayI
if (mStartingWindowListener != null && mStartingWindow != null) {
setStartingWindowListener(mStartingWindowListener);
}
if (mPendingLauncherUnlockAnimationController != null
&& mSysuiUnlockAnimationController != null) {
setLauncherUnlockAnimationController(mPendingLauncherUnlockAnimationController);
mPendingLauncherUnlockAnimationController = null;
if (mSysuiUnlockAnimationController != null && mLauncherUnlockAnimationController != null) {
setLauncherUnlockAnimationController(mLauncherUnlockAnimationController);
}
for (int i = mRemoteTransitions.size() - 1; i >= 0; --i) {
registerRemoteTransition(mRemoteTransitions.get(i));
@@ -761,11 +759,11 @@ public class SystemUiProxy implements ISystemUiProxy, DisplayController.DisplayI
controller.dispatchSmartspaceStateToSysui();
}
} catch (RemoteException e) {
Log.w(TAG, "Failed call setStartingWindowListener", e);
Log.w(TAG, "Failed call setLauncherUnlockAnimationController", e);
}
} else {
mPendingLauncherUnlockAnimationController = controller;
}
mLauncherUnlockAnimationController = controller;
}
/**