Emphasize action buttons for sticky HUN

Bug: 243421660
Test: visual
Change-Id: I1353237caec1296f831f17830783e7a13063d6e4
This commit is contained in:
Lyn
2023-02-10 19:12:19 +00:00
parent 78413c7ea7
commit 7724c90c44

View File

@@ -5758,7 +5758,10 @@ public class Notification implements Parcelable
List<Notification.Action> nonContextualActions = getNonContextualActions();
int numActions = Math.min(nonContextualActions.size(), MAX_ACTION_BUTTONS);
boolean emphazisedMode = mN.fullScreenIntent != null || p.mCallStyleActions;
boolean emphazisedMode = mN.fullScreenIntent != null
|| p.mCallStyleActions
|| ((mN.flags & FLAG_FSI_REQUESTED_BUT_DENIED) != 0);
if (p.mCallStyleActions) {
// Clear view padding to allow buttons to start on the left edge.
// This must be done before 'setEmphasizedMode' which sets top/bottom margins.