From 7d7a7d94c3d078143032e7d84c4e7ee32d2be601 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 18 Feb 2020 10:57:01 -0500 Subject: [PATCH] Fix persistence bug with toggle actions Test: manual Fixes: 149488941 Change-Id: I37e40772b09a054fd6a98473a740112401abaf40 --- .../notification/row/NotificationConversationInfo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java index 923c348c2359d..248e5feba7038 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java @@ -513,7 +513,11 @@ public class NotificationConversationInfo extends LinearLayout implements @Override public boolean shouldBeSaved() { - return mSelectedAction > -1; + // Toggle actions are already saved by the time the guts are closed; save for any other + // taps + return mSelectedAction > -1 + && mSelectedAction != ACTION_FAVORITE + && mSelectedAction != ACTION_MUTE; } @Override