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
This commit is contained in:
Winson
2016-06-15 15:55:28 -07:00
parent 7555f335f4
commit 34c5526dcd

View File

@@ -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() {