mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 14:05:05 -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 ARG_IS_THREAD_DISPLAY = "isThreadedDisplay";
|
||||||
|
|
||||||
private static final String STATE_SELECTED_MESSAGES = "selectedMessages";
|
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.
|
* Maps a {@link SortType} to a {@link Comparator} implementation.
|
||||||
@ -749,6 +750,8 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
|
|
||||||
saveSelectedMessages(outState);
|
saveSelectedMessages(outState);
|
||||||
|
|
||||||
|
outState.putBoolean(STATE_REMOTE_SEARCH_PERFORMED, mRemoteSearchPerformed);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -762,6 +765,8 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
}
|
}
|
||||||
|
|
||||||
restoreSelectedMessages(savedInstanceState);
|
restoreSelectedMessages(savedInstanceState);
|
||||||
|
|
||||||
|
mRemoteSearchPerformed = savedInstanceState.getBoolean(STATE_REMOTE_SEARCH_PERFORMED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user