~singpolyma/cheogram-android

13dda82da4a3e6d67b778b831910ce0bc0e639d4 — Stephen Paul Weber a month ago 03eca53 master
Fix for targeting 31+

com.cheogram.android: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
1 files changed, 4 insertions(+), 2 deletions(-)

M src/main/java/eu/siacs/conversations/services/NotificationService.java
M src/main/java/eu/siacs/conversations/services/NotificationService.java => src/main/java/eu/siacs/conversations/services/NotificationService.java +4 -2
@@ 1609,9 1609,11 @@ public class NotificationService {
        intent.setAction(XmppConnectionService.ACTION_CLEAR_MISSED_CALL_NOTIFICATION);
        if (conversation != null) {
            intent.putExtra("uuid", conversation.getUuid());
            return PendingIntent.getService(mXmppConnectionService, generateRequestCode(conversation, 21), intent, 0);
            return PendingIntent.getService(mXmppConnectionService, generateRequestCode(conversation, 21), intent,
                s() ? PendingIntent.FLAG_IMMUTABLE : 0);
        }
        return PendingIntent.getService(mXmppConnectionService, 1, intent, 0);
        return PendingIntent.getService(mXmppConnectionService, 1, intent,
                s() ? PendingIntent.FLAG_IMMUTABLE : 0);
    }

    private PendingIntent createReplyIntent(