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

Commit 27732cc0 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed an issue where the reply icon was disabled

Because it was disabled by an earlier update, a subsequent update
needs to enable the reply icon again, as the pending intent
might be valid again.

Change-Id: Ic562b399184e37c3870e1da7dc5d15baca43dc54
Fixes: 80250615
Test: add multiple messages where each one cancels the previous pendinging intent, observe clickable reply icon
parent c0797c85
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -182,6 +182,9 @@ public class NotificationTemplateViewWrapper extends NotificationHeaderViewWrapp
            }
            }
        }
        }
        if (mReplyAction != null) {
        if (mReplyAction != null) {
            // Let's reset the view on update, assuming the new pending intent isn't cancelled
            // anymore. The color filter automatically resets when it's updated.
            mReplyAction.setEnabled(true);
            performOnPendingIntentCancellation(mReplyAction, () -> {
            performOnPendingIntentCancellation(mReplyAction, () -> {
                if (mReplyAction != null && mReplyAction.isEnabled()) {
                if (mReplyAction != null && mReplyAction.isEnabled()) {
                    mReplyAction.setEnabled(false);
                    mReplyAction.setEnabled(false);