From ed461831ba1bed32895eeb88388becd8a0007170 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Wed, 7 Mar 2018 14:33:35 +0100 Subject: [PATCH] Fix crash with pendingintents in messageview Only the lower 16 bits can be used for the request code from fragments. This changes our own mask to use the 15th bit instead of the 16th. --- k9mail/src/main/java/com/fsck/k9/activity/MessageList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k9mail/src/main/java/com/fsck/k9/activity/MessageList.java b/k9mail/src/main/java/com/fsck/k9/activity/MessageList.java index 82b60511327..20857be4e42 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/MessageList.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/MessageList.java @@ -92,7 +92,7 @@ public class MessageList extends K9Activity implements MessageListFragmentListen private static final int PREVIOUS = 1; private static final int NEXT = 2; - public static final int REQUEST_MASK_PENDING_INTENT = 1 << 16; + public static final int REQUEST_MASK_PENDING_INTENT = 1 << 15; public static void actionDisplaySearch(Context context, SearchSpecification search, boolean noThreading, boolean newTask) {