summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-24 08:18:38 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-24 08:18:38 -0700
commit1e0d2429734b7d0c58a5442574e3abb31f49852c (patch)
treef38e2b387dd44ce7a071798d9893b319bd275ab0
parentd8546dce291167da225031a927c0172641cfff83 (diff)
parent09782e973223ebc1d3fecc14877a11fa3e66e51a (diff)
Merge "Wrap reparent in a try-catch." into main
-rw-r--r--packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java b/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java
index 9e08317d2c6b..041ccb567146 100644
--- a/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java
+++ b/packages/SystemUI/animation/src/com/android/systemui/animation/RemoteAnimationRunnerCompat.java
@@ -199,8 +199,10 @@ public abstract class RemoteAnimationRunnerCompat extends IRemoteAnimationRunner
info.releaseAllSurfaces();
// Make sure that the transition leashes created are not leaked.
for (SurfaceControl leash : leashMap.values()) {
- if (leash.isValid()) {
+ try {
finishTransaction.reparent(leash, null);
+ } catch (Exception e) {
+ Log.e(TAG, "Failed to reparent leash", e);
}
}
// Don't release here since launcher might still be using them. Instead