Merge "Add null check for recents when tapping on Taskbar icons" into tm-qpr-dev am: f51426a6ee

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

Change-Id: I6f299319cac89a12e66c054d9baa39e1107c7651
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vinit Nayak
2023-03-04 06:34:02 +00:00
committed by Automerger Merge Worker

View File

@@ -877,7 +877,11 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
* as if the user tapped on it (preserving the split pair). Otherwise, launch it normally
* (potentially breaking a split pair).
*/
private void launchFromTaskbarPreservingSplitIfVisible(RecentsView recents, ItemInfo info) {
private void launchFromTaskbarPreservingSplitIfVisible(@Nullable RecentsView recents,
ItemInfo info) {
if (recents == null) {
return;
}
ComponentKey componentToBeLaunched = new ComponentKey(info.getTargetComponent(), info.user);
recents.getSplitSelectController().findLastActiveTaskAndRunCallback(
componentToBeLaunched,