Implemented full-text search.

You can now use the search bar on the conversation list to find
conversations, messages, and contacts.
This commit is contained in:
Greyson Parrelli
2018-04-06 18:15:24 -07:00
parent c0b75c2ef5
commit 0449647cf9
28 changed files with 1505 additions and 70 deletions

View File

@@ -145,7 +145,7 @@ public class ContactsDatabase {
}
@SuppressLint("Recycle")
@NonNull Cursor querySystemContacts(@Nullable String filter) {
public @NonNull Cursor querySystemContacts(@Nullable String filter) {
Uri uri;
if (!TextUtils.isEmpty(filter)) {
@@ -193,7 +193,7 @@ public class ContactsDatabase {
}
@SuppressLint("Recycle")
@NonNull Cursor queryTextSecureContacts(String filter) {
public @NonNull Cursor queryTextSecureContacts(String filter) {
String[] projection = new String[] {ContactsContract.Contacts.DISPLAY_NAME,
ContactsContract.Data.DATA1};