Merge "Capture all remote exceptions" into udc-dev am: 16161f646b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23059648

Change-Id: I23f4b89f2478348e9026856cefa52d82bad77fac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Matt Pietal
2023-05-05 19:57:12 +00:00
committed by Automerger Merge Worker

View File

@@ -2941,9 +2941,12 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
if (mSurfaceBehindRemoteAnimationFinishedCallback != null) {
try {
mSurfaceBehindRemoteAnimationFinishedCallback.onAnimationFinished();
} catch (Throwable t) {
// The surface may no longer be available. Just capture the exception
Log.w(TAG, "Surface behind remote animation callback failed, and it's probably ok: "
+ t.getMessage());
} finally {
mSurfaceBehindRemoteAnimationFinishedCallback = null;
} catch (RemoteException e) {
e.printStackTrace();
}
}
}