Merge "Check for null mLeash before setting alpha." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1f9afd727a
@@ -970,6 +970,11 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
||||
if (!isInPip()) {
|
||||
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 =
|
||||
mSurfaceControlTransactionFactory.getTransaction();
|
||||
mSurfaceTransactionHelper.alpha(tx, mLeash, visible ? 1f : 0f);
|
||||
|
||||
Reference in New Issue
Block a user