Merge "Fix NPE in RemoteTransitionCompat" into sc-v2-dev
This commit is contained in:
@@ -131,12 +131,13 @@ public class RemoteTransitionCompat implements Parcelable {
|
|||||||
t.setLayer(leashMap.get(change.getLeash()),
|
t.setLayer(leashMap.get(change.getLeash()),
|
||||||
info.getChanges().size() * 3 - i);
|
info.getChanges().size() * 3 - i);
|
||||||
final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
|
final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
|
||||||
if (taskInfo != null) {
|
if (taskInfo == null) {
|
||||||
pausingTask = change.getTaskInfo().token;
|
continue;
|
||||||
}
|
}
|
||||||
|
pausingTask = taskInfo.token;
|
||||||
if (taskInfo.pictureInPictureParams != null
|
if (taskInfo.pictureInPictureParams != null
|
||||||
&& taskInfo.pictureInPictureParams.isAutoEnterEnabled()) {
|
&& taskInfo.pictureInPictureParams.isAutoEnterEnabled()) {
|
||||||
pipTask = change.getTaskInfo().token;
|
pipTask = taskInfo.token;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user