mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Remember across activity restarts whether remote search was performed
This commit is contained in:
parent
e5d8e1965e
commit
cc3580c675
@ -306,6 +306,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
||||
private static final String ARG_IS_THREAD_DISPLAY = "isThreadedDisplay";
|
||||
|
||||
private static final String STATE_SELECTED_MESSAGES = "selectedMessages";
|
||||
private static final String STATE_REMOTE_SEARCH_PERFORMED = "remoteSearchPerformed";
|
||||
|
||||
/**
|
||||
* Maps a {@link SortType} to a {@link Comparator} implementation.
|
||||
@ -749,6 +750,8 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
||||
super.onSaveInstanceState(outState);
|
||||
|
||||
saveSelectedMessages(outState);
|
||||
|
||||
outState.putBoolean(STATE_REMOTE_SEARCH_PERFORMED, mRemoteSearchPerformed);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -762,6 +765,8 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
||||
}
|
||||
|
||||
restoreSelectedMessages(savedInstanceState);
|
||||
|
||||
mRemoteSearchPerformed = savedInstanceState.getBoolean(STATE_REMOTE_SEARCH_PERFORMED);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user