commit | 775fcb3fcfe90af3782e7996fa277123799f621a | [log] [tgz] |
---|---|---|
author | Vinit Nayak <peanutbutter@google.com> | Fri Oct 15 15:16:20 2021 -0700 |
committer | Vinit Nayak <peanutbutter@google.com> | Fri Oct 15 15:16:20 2021 -0700 |
tree | 6d350eb36f422bc7084535044526dee9d0be5506 | |
parent | 60c64adeed0581d71e8add63fc251ded6df2a4cc [diff] |
Ensure RecentsView RemoteTargetHandle's are non-null Fixes: 201246959 Change-Id: Ifb8463e62765c92377db2a57ff7568e31da667aa
diff --git a/quickstep/src/com/android/quickstep/TaskViewUtils.java b/quickstep/src/com/android/quickstep/TaskViewUtils.java index 284bc03..12b071d 100644 --- a/quickstep/src/com/android/quickstep/TaskViewUtils.java +++ b/quickstep/src/com/android/quickstep/TaskViewUtils.java
@@ -170,7 +170,7 @@ RemoteTargetHandle[] remoteTargetHandles; RemoteTargetHandle[] recentsViewHandles = recentsView.getRemoteTargetHandles(); - if (v.isRunningTask()) { + if (v.isRunningTask() && recentsViewHandles != null) { // Re-use existing handles remoteTargetHandles = recentsViewHandles; } else {