From 34c5526dcd8038096ec519f267a705a03cc9d777 Mon Sep 17 00:00:00 2001 From: Winson Date: Wed, 15 Jun 2016 15:55:28 -0700 Subject: [PATCH] Ensure that the tint is properly applied in docked mode. - The signal cluster dedupes multiple calls with the same value, but since the first calls come before the rotation relayout, the dark tint is calculated incorrectly and subsequent calls get deduped. Ensure that if the layout changes, we also update the tint of all icons again. Bug: 29390902 Change-Id: I79c3796cba2f9a94d44f9fd59cf1702a64b62cd9 --- .../com/android/systemui/statusbar/SignalClusterView.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java index 2b59c68a44b86..599e575a0e240 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java @@ -234,6 +234,14 @@ public class SignalClusterView super.onDetachedFromWindow(); } + @Override + protected void onLayout(boolean changed, int l, int t, int r, int b) { + super.onLayout(changed, l, t, r, b); + + // Re-run all checks against the tint area for all icons + applyIconTint(); + } + // From SecurityController. @Override public void onStateChanged() {