diff options
| author | 2019-06-05 13:40:54 -0700 | |
|---|---|---|
| committer | 2019-06-05 13:40:54 -0700 | |
| commit | e94a94d40db0d883d3aea2bf38e264f5d2ffd1ad (patch) | |
| tree | 5022edc5c4b88ca7e72c9f77613b85299e0b0c84 | |
| parent | 78f1f5a0099c0ac48e78ac077270953463332ad9 (diff) | |
| parent | 752efb1197ff8594504e2505d230890387bbfe96 (diff) | |
Merge "Read the subtext of noti guts field on selection" into qt-dev am: 8ef8577391 am: 09e8873efe
am: 752efb1197
Change-Id: Ibd7bb360a82fc01462fe181140943f56155d8097
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationInfo.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationInfo.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationInfo.java index 0f6740d44d04..7c6c556b5241 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationInfo.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationInfo.java @@ -569,16 +569,21 @@ public class NotificationInfo extends LinearLayout implements NotificationGuts.G switch (behavior) { case BEHAVIOR_ALERTING: - alert.setSelected(true); - silence.setSelected(false); mPriorityDescriptionView.setVisibility(VISIBLE); mSilentDescriptionView.setVisibility(GONE); + post(() -> { + alert.setSelected(true); + silence.setSelected(false); + }); break; case BEHAVIOR_SILENT: - alert.setSelected(false); - silence.setSelected(true); + mSilentDescriptionView.setVisibility(VISIBLE); mPriorityDescriptionView.setVisibility(GONE); + post(() -> { + alert.setSelected(false); + silence.setSelected(true); + }); break; default: throw new IllegalArgumentException("Unrecognized alerting behavior: " + behavior); |