Merge "Validate content overlay before removal" into tm-dev am: eb700c0090
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18656364 Change-Id: I8d84242efab45782b491579ea4fd94a9003f067f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1600,6 +1600,11 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
|||||||
// Avoid double removal, which is fatal.
|
// Avoid double removal, which is fatal.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (surface == null || !surface.isValid()) {
|
||||||
|
ProtoLog.w(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
|
||||||
|
"%s: trying to remove invalid content overlay (%s)", TAG, surface);
|
||||||
|
return;
|
||||||
|
}
|
||||||
final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction();
|
final SurfaceControl.Transaction tx = mSurfaceControlTransactionFactory.getTransaction();
|
||||||
tx.remove(surface);
|
tx.remove(surface);
|
||||||
tx.apply();
|
tx.apply();
|
||||||
|
|||||||
Reference in New Issue
Block a user