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

Commit b330d6e6 authored by Winson Chung's avatar Winson Chung
Browse files

Disable blurs while in multiwindow mode

- With hierarchical animations, the split-secondary shell root
  is moved above the split-primary shell root immediately during
  transitions, which means that setting the blur on the launcher
  surface will also affect the primary docked surface

Bug: 154125518
Change-Id: I21dd01738ee9bc974d41e5964364917a30143a2a
parent 20aeddd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ public class BackgroundAppState extends OverviewState {
    }

    @Override
    public float getDepth(Context context) {
    protected float getDepthUnchecked(Context context) {
        return 1f;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ public class OverviewState extends LauncherState {
    }

    @Override
    public float getDepth(Context context) {
    protected float getDepthUnchecked(Context context) {
        return 1f;
    }

+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ public class AllAppsState extends LauncherState {
    }

    @Override
    public float getDepth(Context context) {
    protected float getDepthUnchecked(Context context) {
        return 1f;
    }

+8 −1
Original line number Diff line number Diff line
@@ -276,7 +276,14 @@ public abstract class LauncherState {
     *
     * 0 means completely zoomed in, without blurs. 1 is zoomed out, with blurs.
     */
    public float getDepth(Context context) {
    public final float getDepth(Context context) {
        if (BaseDraggingActivity.fromContext(context).getDeviceProfile().isMultiWindowMode) {
            return 0;
        }
        return getDepthUnchecked(context);
    }

    protected float getDepthUnchecked(Context context) {
        return 0f;
    }

+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ public class SpringLoadedState extends LauncherState {
    }

    @Override
    public float getDepth(Context context) {
    protected float getDepthUnchecked(Context context) {
        return 0.5f;
    }