Reset blur radius after dialog is gone

Test: press power to show dialog, turn screen off and on
Fixes: 152805231
Change-Id: I6620d69c78d7b9028c0170f57569dd5ccec11a5e
This commit is contained in:
Lucas Dupin
2020-03-31 14:16:16 -07:00
parent 64d3ed6006
commit 77198561dc
2 changed files with 2 additions and 1 deletions

View File

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

View File

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