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

Verified Commit 40b5c88f authored by Saalim Quadri's avatar Saalim Quadri
Browse files

feat: Reset blur when we come back from folder and minus_one screen

parent 3625d377
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -320,6 +320,19 @@ public class GridFolder extends Folder implements OnAlarmListener {
                }
            }

            @Override
            public void onAnimationCancel(Animator animation) {
                super.onAnimationCancel(animation);
                isAnimating = false;
                // Reset blur to expected final state when animation is cancelled
                if (blur != null) {
                    blur.setAlpha(hide ? 0f : 1f);
                }
                if (!hide && hotseat != null) {
                    hotseat.setVisibility(VISIBLE);
                }
            }

            @Override
            public void onAnimationStart(Animator animation) {
                super.onAnimationStart(animation);
+4 −0
Original line number Diff line number Diff line
@@ -2686,6 +2686,10 @@ public class Launcher extends StatefulActivity<LauncherState>
     * Informs us that the overlay (-1 screen, typically), has either become visible or invisible.
     */
    public void onOverlayVisibilityChanged(boolean visible) {
        // Ensure blur is reset when overlay becomes invisible
        if (!visible && mBlurLayer != null) {
            mBlurLayer.setAlpha(0f);
        }
        getStatsLogManager().logger()
                .withSrcState(LAUNCHER_STATE_HOME)
                .withDstState(LAUNCHER_STATE_HOME)