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

Commit d1d45dd3 authored by Matthew Ng's avatar Matthew Ng
Browse files

Changed the default time for prototype color adaptation to 1500 ms

Test: manual
Bug: 112934365
Change-Id: Ied7f1aa1361832f54c13127b951ea3a9974ba620
parent 5119ee33
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.systemui.statusbar.phone;

import static com.android.systemui.statusbar.phone.NavBarTintController.DEFAULT_COLOR_ADAPT_TRANSITION_TIME;
import static com.android.systemui.statusbar.phone.NavBarTintController.MIN_COLOR_ADAPT_TRANSITION_TIME;
import static com.android.systemui.statusbar.phone.NavBarTintController.NAV_COLOR_TRANSITION_TIME_SETTING;

@@ -161,7 +162,7 @@ public class LightBarTransitionsController implements Dumpable, Callbacks,
    public long getTintAnimationDuration() {
        if (NavBarTintController.isEnabled(mContext)) {
            return Math.max(Settings.Global.getInt(mContext.getContentResolver(),
                    NAV_COLOR_TRANSITION_TIME_SETTING, DEFAULT_TINT_ANIMATION_DURATION),
                    NAV_COLOR_TRANSITION_TIME_SETTING, DEFAULT_COLOR_ADAPT_TRANSITION_TIME),
                    MIN_COLOR_ADAPT_TRANSITION_TIME);
        }
        return DEFAULT_TINT_ANIMATION_DURATION;
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.view.SurfaceControl;
public class NavBarTintController {
    public static final String NAV_COLOR_TRANSITION_TIME_SETTING = "navbar_color_adapt_transition";
    public static final int MIN_COLOR_ADAPT_TRANSITION_TIME = 400;
    public static final int DEFAULT_COLOR_ADAPT_TRANSITION_TIME = 1500;

    private final HandlerThread mColorAdaptHandlerThread = new HandlerThread("ColorExtractThread");
    private Handler mColorAdaptionHandler;