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

Commit ddf8d012 authored by Brian Attwell's avatar Brian Attwell Committed by Android (Google) Code Review
Browse files

Merge "Ensure status bar color gets set" into lmp-dev

parents 825afde1 847bf2cd
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -1350,14 +1350,12 @@ public class QuickContactActivity extends ContactsActivity {
            desiredStatusBarColor = Color.TRANSPARENT;
        }
        // Animate to the new color.
        if (desiredStatusBarColor != getWindow().getStatusBarColor()) {
        final ObjectAnimator animation = ObjectAnimator.ofInt(getWindow(), "statusBarColor",
                getWindow().getStatusBarColor(), desiredStatusBarColor);
        animation.setDuration(ANIMATION_STATUS_BAR_COLOR_CHANGE_DURATION);
        animation.setEvaluator(new ArgbEvaluator());
        animation.start();
    }
    }

    private int colorFromBitmap(Bitmap bitmap) {
        // Author of Palette recommends using 24 colors when analyzing profile photos.