mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-13 13:05:03 -05:00
fdb1267cb1
* rbayer/IMAPsearch: (21 commits) More cleanup Code Cleanup getRemoteSearchFullText -> isRemoteSearchFullText line wraps for preference items Refactor to allow fetching of extra search results beyond original request. Most code moved out of ImapStore and ImapFolder and into MessagingController.searchRemoteMessagesSynchronous. Should make it easier to add remoteSearch for other server types. Prevent delete of search results while search results open remove duplicated code block Don't hide Crypto when IMAPsearch disabled Code Style Cleanup: Tabs -> 4 spaces Remove trailing whitespace from blank lines tabs -> spaces (my bad...) Fix opening of folders to be Read-Write when necessary, even if they were previously opened Read-Only. add missing file Working IMAP search, with passable UI. UI improvements Simple help info when enabling Remote Search Dependency for preferences Basic IMAP search working
30 lines
473 B
Java
30 lines
473 B
Java
package com.fsck.k9.activity;
|
|
|
|
|
|
public class Search extends MessageList {
|
|
protected static boolean isActive = false;
|
|
|
|
public static boolean isActive() {
|
|
return isActive;
|
|
}
|
|
|
|
public static void setActive(boolean val) {
|
|
isActive = val;
|
|
}
|
|
|
|
@Override
|
|
public void onStart() {
|
|
setActive(true);
|
|
super.onStart();
|
|
}
|
|
|
|
@Override
|
|
public void onStop() {
|
|
setActive(false);
|
|
super.onStop();
|
|
}
|
|
|
|
|
|
|
|
}
|