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

Commit ceb35e5c authored by Brian Attwell's avatar Brian Attwell Committed by Android Git Automerger
Browse files

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

* commit 'ddf8d012':
  Ensure status bar color gets set
parents b0304799 ddf8d012
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.