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

Commit ffa44902 authored by Andreas Agvard's avatar Andreas Agvard Committed by Android (Google) Code Review
Browse files

Merge "Adds support for shrinking nav handle on press" into main

parents 717c4f51 1ea0746e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -403,10 +403,10 @@ public class SystemUiProxy implements ISystemUiProxy {
    }

    @Override
    public void animateNavBarLongPress(boolean isTouchDown, long durationMs) {
    public void animateNavBarLongPress(boolean isTouchDown, boolean shrink, long durationMs) {
        if (mSystemUiProxy != null) {
            try {
                mSystemUiProxy.animateNavBarLongPress(isTouchDown, durationMs);
                mSystemUiProxy.animateNavBarLongPress(isTouchDown, shrink, durationMs);
            } catch (RemoteException e) {
                Log.w(TAG, "Failed call animateNavBarLongPress", e);
            }
+4 −0
Original line number Diff line number Diff line
@@ -124,6 +124,10 @@ public final class FeatureFlags {
            getReleaseFlag(308693847, "ANIMATE_LPNH", TEAMFOOD,
                    "Animates navbar when long pressing");

    public static final BooleanFlag SHRINK_NAV_HANDLE_ON_PRESS =
            getReleaseFlag(314158312, "SHRINK_NAV_HANDLE_ON_PRESS", DISABLED,
                    "Shrinks navbar when long pressing if ANIMATE_LPNH is enabled");

    public static final IntFlag LPNH_SLOP_PERCENTAGE =
            getIntFlag(301680992, "LPNH_SLOP_PERCENTAGE", 100,
                    "Controls touch slop percentage for lpnh");