mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Use FTS if enabled for external search, cleanup
This commit is contained in:
@@ -1094,9 +1094,17 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
String search = (csearch == null ? null : csearch.toString());
|
||||
if (!TextUtils.isEmpty(search)) {
|
||||
searching = true;
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean fts = prefs.getBoolean("fts", false);
|
||||
|
||||
BoundaryCallbackMessages.SearchCriteria criteria = new BoundaryCallbackMessages.SearchCriteria();
|
||||
criteria.query = search;
|
||||
criteria.fts = fts;
|
||||
|
||||
FragmentMessages.search(
|
||||
ActivityView.this, ActivityView.this, getSupportFragmentManager(),
|
||||
-1, -1, false, new BoundaryCallbackMessages.SearchCriteria(search));
|
||||
-1, -1, false, criteria);
|
||||
}
|
||||
|
||||
intent.removeExtra(Intent.EXTRA_PROCESS_TEXT);
|
||||
|
||||
Reference in New Issue
Block a user