diff options
author | Roman Birg <roman@cyngn.com> | 2016-02-25 15:45:45 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-02-29 12:52:46 -0800 |
commit | 01a268587abfddd45751008e14dc09572569e4d6 (patch) | |
tree | 74ce3b877be71c0b1f002e72511136a6f96ea2a1 /packages/SystemUI/src | |
parent | 983893dda058bd02a861e732a5e00bec7a414ee8 (diff) | |
download | frameworks_base-01a268587abfddd45751008e14dc09572569e4d6.zip frameworks_base-01a268587abfddd45751008e14dc09572569e4d6.tar.gz frameworks_base-01a268587abfddd45751008e14dc09572569e4d6.tar.bz2 |
SystemUI: fix zen mode panel warning not showing
We need to request a relayout of the view so the panel has a chance to
pick up the new height and update to that size.
Ref: CYNGNOS-2063
Change-Id: I6fa95f7a5a72646e0a990b6ffbac51fffdcf5272
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java b/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java index 07ec843..2358f18 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java +++ b/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java @@ -421,8 +421,13 @@ public class ZenModePanel extends LinearLayout { mZenIntroductionCustomize.setVisibility(zenImportant ? VISIBLE : GONE); } final String warning = computeAlarmWarningText(zenNone); - mZenAlarmWarning.setVisibility(warning != null ? VISIBLE : GONE); + final int oldVis = mZenAlarmWarning.getVisibility(); + final int newVis = warning != null ? VISIBLE : GONE; + mZenAlarmWarning.setVisibility(newVis); mZenAlarmWarning.setText(warning); + if (newVis != oldVis) { + requestLayout(); + } } private String computeAlarmWarningText(boolean zenNone) { |