From 78486a253d9db5b6233c9a35923b01992f59ef0d Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 30 Mar 2023 21:57:57 +0000 Subject: [PATCH] Adding check for recents interface before calling back - If SysUI crashes, there's a brief period where the interfaces are reset before SysUI rebinds to Launcher Fixes: 276354061 Test: Presubmit Change-Id: Id1a1a1f41b48b9a7d86c1637cc06b662b5d17914 --- quickstep/src/com/android/quickstep/SystemUiProxy.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/quickstep/SystemUiProxy.java b/quickstep/src/com/android/quickstep/SystemUiProxy.java index d8f49fffdd..55a7baeeb3 100644 --- a/quickstep/src/com/android/quickstep/SystemUiProxy.java +++ b/quickstep/src/com/android/quickstep/SystemUiProxy.java @@ -1104,6 +1104,9 @@ public class SystemUiProxy implements ISystemUiProxy { */ public boolean startRecentsActivity(Intent intent, ActivityOptions options, RecentsAnimationListener listener) { + if (mRecentTasks == null) { + return false; + } final IRecentsAnimationRunner runner = new IRecentsAnimationRunner.Stub() { @Override public void onAnimationStart(IRecentsAnimationController controller,