Merge "Read the subtext of noti guts field on selection" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8ef8577391
@@ -569,16 +569,21 @@ public class NotificationInfo extends LinearLayout implements NotificationGuts.G
|
|||||||
|
|
||||||
switch (behavior) {
|
switch (behavior) {
|
||||||
case BEHAVIOR_ALERTING:
|
case BEHAVIOR_ALERTING:
|
||||||
alert.setSelected(true);
|
|
||||||
silence.setSelected(false);
|
|
||||||
mPriorityDescriptionView.setVisibility(VISIBLE);
|
mPriorityDescriptionView.setVisibility(VISIBLE);
|
||||||
mSilentDescriptionView.setVisibility(GONE);
|
mSilentDescriptionView.setVisibility(GONE);
|
||||||
|
post(() -> {
|
||||||
|
alert.setSelected(true);
|
||||||
|
silence.setSelected(false);
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case BEHAVIOR_SILENT:
|
case BEHAVIOR_SILENT:
|
||||||
alert.setSelected(false);
|
|
||||||
silence.setSelected(true);
|
|
||||||
mSilentDescriptionView.setVisibility(VISIBLE);
|
mSilentDescriptionView.setVisibility(VISIBLE);
|
||||||
mPriorityDescriptionView.setVisibility(GONE);
|
mPriorityDescriptionView.setVisibility(GONE);
|
||||||
|
post(() -> {
|
||||||
|
alert.setSelected(false);
|
||||||
|
silence.setSelected(true);
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Unrecognized alerting behavior: " + behavior);
|
throw new IllegalArgumentException("Unrecognized alerting behavior: " + behavior);
|
||||||
|
|||||||
Reference in New Issue
Block a user