Merge "Capture all remote exceptions" into udc-dev
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user