Merge "Null check RecentsView before calling launchSideTaskInLiveTileMode" into sc-dev
This commit is contained in:
@@ -61,9 +61,11 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
|||||||
if (LIVE_TILE.get() && activityInterface.isInLiveTileMode()
|
if (LIVE_TILE.get() && activityInterface.isInLiveTileMode()
|
||||||
&& activityInterface.getCreatedActivity() != null) {
|
&& activityInterface.getCreatedActivity() != null) {
|
||||||
RecentsView recentsView = activityInterface.getCreatedActivity().getOverviewPanel();
|
RecentsView recentsView = activityInterface.getCreatedActivity().getOverviewPanel();
|
||||||
recentsView.launchSideTaskInLiveTileModeForRestartedApp(task.taskId);
|
if (recentsView != null) {
|
||||||
ActivityManagerWrapper.getInstance().unregisterTaskStackListener(
|
recentsView.launchSideTaskInLiveTileModeForRestartedApp(task.taskId);
|
||||||
mLiveTileRestartListener);
|
ActivityManagerWrapper.getInstance().unregisterTaskStackListener(
|
||||||
|
mLiveTileRestartListener);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -135,10 +137,12 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
|||||||
&& activityInterface.getCreatedActivity() != null) {
|
&& activityInterface.getCreatedActivity() != null) {
|
||||||
RecentsView recentsView =
|
RecentsView recentsView =
|
||||||
activityInterface.getCreatedActivity().getOverviewPanel();
|
activityInterface.getCreatedActivity().getOverviewPanel();
|
||||||
RemoteAnimationTargetCompat[] apps = new RemoteAnimationTargetCompat[1];
|
if (recentsView != null) {
|
||||||
apps[0] = appearedTaskTarget;
|
RemoteAnimationTargetCompat[] apps = new RemoteAnimationTargetCompat[1];
|
||||||
recentsView.launchSideTaskInLiveTileMode(appearedTaskTarget.taskId, apps);
|
apps[0] = appearedTaskTarget;
|
||||||
return;
|
recentsView.launchSideTaskInLiveTileMode(appearedTaskTarget.taskId, apps);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (mController != null) {
|
if (mController != null) {
|
||||||
if (mLastAppearedTaskTarget == null
|
if (mLastAppearedTaskTarget == null
|
||||||
|
|||||||
Reference in New Issue
Block a user