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

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

Change-Id: Iec21590a5cda006eefdaafc8c39811dd4ce53b32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vinit Nayak
2023-03-07 00:07:53 +00:00
committed by Automerger Merge Worker
@@ -878,7 +878,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,