Skip to content

Commit

Permalink
Fix crash with pendingintents in messageview
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Valodim authored and cketti committed Apr 2, 2018
1 parent f716e96 commit ed46183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k9mail/src/main/java/com/fsck/k9/activity/MessageList.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ed46183

Please sign in to comment.