From 5485f7a1bb8c5d816706e58b35a176cfd79c7de9 Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 11 Mar 2017 20:05:39 +0100 Subject: [PATCH] Continue to support old unread widget PendingIntents --- .../main/java/com/fsck/k9/activity/MessageList.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 f1addf57f..28f4c0df3 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/MessageList.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/MessageList.java @@ -72,8 +72,11 @@ public class MessageList extends K9Activity implements MessageListFragmentListen MessageViewFragmentListener, OnBackStackChangedListener, OnSwipeGestureListener, OnSwitchCompleteListener { - // for this activity - private static final String EXTRA_SEARCH = "search"; + @Deprecated + //TODO: Remove after 2017-09-11 + private static final String EXTRA_SEARCH_OLD = "search"; + + private static final String EXTRA_SEARCH = "search_bytes"; private static final String EXTRA_NO_THREADING = "no_threading"; private static final String ACTION_SHORTCUT = "shortcut"; @@ -431,6 +434,9 @@ public class MessageList extends K9Activity implements MessageListFragmentListen mSearch.addAccountUuid(LocalSearch.ALL_ACCOUNTS); } } + } else if (intent.hasExtra(EXTRA_SEARCH_OLD)) { + mSearch = intent.getParcelableExtra(EXTRA_SEARCH_OLD); + mNoThreading = intent.getBooleanExtra(EXTRA_NO_THREADING, false); } else { // regular LocalSearch object was passed mSearch = intent.hasExtra(EXTRA_SEARCH) ?