Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77198561 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Reset blur radius after dialog is gone

Test: press power to show dialog, turn screen off and on
Fixes: 152805231
Change-Id: I6620d69c78d7b9028c0170f57569dd5ccec11a5e
parent 64d3ed60
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1903,6 +1903,7 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,

        private void completeDismiss() {
            mNotificationShadeWindowController.setForceHasTopUi(mHadTopUi);
            mDepthController.updateGlobalDialogVisibility(0, null /* view */);
            super.dismiss();
        }

+1 −1
Original line number Diff line number Diff line
@@ -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)
    }