Ensure status bar color gets set
Bug: 16546263
Change-Id: If30c8086ce1eee44c48e32cd84d1259cb1060808
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 669b460..6bfe3ee 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -1347,13 +1347,11 @@
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();
- }
+ 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) {