Merge "Reset blur radius after dialog is gone" into rvc-dev

This commit is contained in:
Lucas Dupin
2020-04-01 01:28:50 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -1903,6 +1903,7 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
private void completeDismiss() { private void completeDismiss() {
mNotificationShadeWindowController.setForceHasTopUi(mHadTopUi); mNotificationShadeWindowController.setForceHasTopUi(mHadTopUi);
mDepthController.updateGlobalDialogVisibility(0, null /* view */);
super.dismiss(); super.dismiss();
} }

View File

@@ -189,7 +189,7 @@ class NotificationShadeDepthController @Inject constructor(
choreographer.postFrameCallback(updateBlurCallback) choreographer.postFrameCallback(updateBlurCallback)
} }
fun updateGlobalDialogVisibility(visibility: Float, dialogView: View) { fun updateGlobalDialogVisibility(visibility: Float, dialogView: View?) {
globalActionsSpring.animateTo(blurUtils.blurRadiusOfRatio(visibility), dialogView) globalActionsSpring.animateTo(blurUtils.blurRadiusOfRatio(visibility), dialogView)
} }