Merge "Workaround to fix remote animation hanging." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ef483c66a9
@@ -2161,6 +2161,15 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
|
|||||||
if (!mHiding
|
if (!mHiding
|
||||||
&& !mSurfaceBehindRemoteAnimationRequested
|
&& !mSurfaceBehindRemoteAnimationRequested
|
||||||
&& !mKeyguardStateController.isFlingingToDismissKeyguardDuringSwipeGesture()) {
|
&& !mKeyguardStateController.isFlingingToDismissKeyguardDuringSwipeGesture()) {
|
||||||
|
if (finishedCallback != null) {
|
||||||
|
// There will not execute animation, send a finish callback to ensure the remote
|
||||||
|
// animation won't hanging there.
|
||||||
|
try {
|
||||||
|
finishedCallback.onAnimationFinished();
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
Slog.w(TAG, "Failed to call onAnimationFinished", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
setShowingLocked(mShowing, true /* force */);
|
setShowingLocked(mShowing, true /* force */);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user