Merge "Fix NPE in RemoteTransitionCompat" into sc-v2-dev am: 9119cb969f am: ad8a47bdf0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15378417 Change-Id: Ia862cd8e2c207d1699bfd43bfabb98f20cfb5254
This commit is contained in:
@@ -131,12 +131,13 @@ public class RemoteTransitionCompat implements Parcelable {
|
||||
t.setLayer(leashMap.get(change.getLeash()),
|
||||
info.getChanges().size() * 3 - i);
|
||||
final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
|
||||
if (taskInfo != null) {
|
||||
pausingTask = change.getTaskInfo().token;
|
||||
if (taskInfo == null) {
|
||||
continue;
|
||||
}
|
||||
pausingTask = taskInfo.token;
|
||||
if (taskInfo.pictureInPictureParams != null
|
||||
&& taskInfo.pictureInPictureParams.isAutoEnterEnabled()) {
|
||||
pipTask = change.getTaskInfo().token;
|
||||
pipTask = taskInfo.token;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user