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

Commit 847bf2cd authored by Brian Attwell's avatar Brian Attwell
Browse files

Ensure status bar color gets set

Bug: 16546263
Change-Id: If30c8086ce1eee44c48e32cd84d1259cb1060808
parent a5e17ac3
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -1347,14 +1347,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.