Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d7a7d94 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix persistence bug with toggle actions

Test: manual
Fixes: 149488941
Change-Id: I37e40772b09a054fd6a98473a740112401abaf40
parent cd1ca07b
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -513,7 +513,11 @@ public class NotificationConversationInfo extends LinearLayout implements


    @Override
    @Override
    public boolean shouldBeSaved() {
    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
    @Override