mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user