Merge "Check for null mLeash before setting alpha." into tm-dev am: 1f9afd727a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18585595 Change-Id: I52a1ced5b241c4b5236307333453b01591985b62 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -970,6 +970,11 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
|||||||
if (!isInPip()) {
|
if (!isInPip()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (mLeash == null || !mLeash.isValid()) {
|
||||||
|
ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
|
||||||
|
"%s: Invalid leash on setPipVisibility: %s", TAG, mLeash);
|
||||||
|
return;
|
||||||
|
}
|
||||||
final SurfaceControl.Transaction tx =
|
final SurfaceControl.Transaction tx =
|
||||||
mSurfaceControlTransactionFactory.getTransaction();
|
mSurfaceControlTransactionFactory.getTransaction();
|
||||||
mSurfaceTransactionHelper.alpha(tx, mLeash, visible ? 1f : 0f);
|
mSurfaceTransactionHelper.alpha(tx, mLeash, visible ? 1f : 0f);
|
||||||
|
|||||||
Reference in New Issue
Block a user