mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge changes from topic "presubmit-am-cc24ad26c93446a690f8a34ffde58aa3" into sc-v2-dev-plus-aosp
* changes:
[automerge] Add null check for mRemoteTargetHandles for side task launch 2p: 90e0fe3923
Add null check for mRemoteTargetHandles for side task launch
This commit is contained in:
committed by
Android (Google) Code Review
commit
3a6a78f7b0
@@ -984,13 +984,17 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
*/
|
||||
public void launchSideTaskInLiveTileModeForRestartedApp(int taskId) {
|
||||
int runningTaskViewId = getTaskViewIdFromTaskId(taskId);
|
||||
if (mRunningTaskViewId != -1 && mRunningTaskViewId == runningTaskViewId) {
|
||||
TransformParams params = mRemoteTargetHandles[0].getTransformParams();
|
||||
RemoteAnimationTargets targets = params.getTargetSet();
|
||||
if (targets != null && targets.findTask(taskId) != null) {
|
||||
launchSideTaskInLiveTileMode(taskId, targets.apps, targets.wallpapers,
|
||||
targets.nonApps);
|
||||
}
|
||||
if (mRunningTaskViewId == -1 ||
|
||||
mRunningTaskViewId != runningTaskViewId ||
|
||||
mRemoteTargetHandles == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
TransformParams params = mRemoteTargetHandles[0].getTransformParams();
|
||||
RemoteAnimationTargets targets = params.getTargetSet();
|
||||
if (targets != null && targets.findTask(taskId) != null) {
|
||||
launchSideTaskInLiveTileMode(taskId, targets.apps, targets.wallpapers,
|
||||
targets.nonApps);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user