diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-06-05 20:00:32 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-06-05 20:00:32 +0000 |
| commit | 8ef857739120cfdf8d94bcac1acaa907018faba8 (patch) | |
| tree | 5f21da2f6e76e6e28e6a09ce9213381de9b7c7ea | |
| parent | 92d7f42baa473fa17240484183ac10182f5b6767 (diff) | |
| parent | daab21a0507add64be982a4fc40ab7547f3a5f1f (diff) | |
Merge "Read the subtext of noti guts field on selection" into qt-dev
| -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); |
