From 408d38102d024300eb43864ecf6e5392e8d43fa8 Mon Sep 17 00:00:00 2001 From: Vavassor Date: Sun, 16 Jul 2017 22:31:40 -0400 Subject: [PATCH] Fixes the search page not working on Android Kitkat (searching applications instead of accounts and tags). --- app/build.gradle | 3 --- .../main/java/com/keylesspalace/tusky/SearchActivity.java | 7 ------- 2 files changed, 10 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f5b59ab16..ed17a6c0a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,9 +1,6 @@ apply plugin: 'com.android.application' android { - signingConfigs { - - } compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { diff --git a/app/src/main/java/com/keylesspalace/tusky/SearchActivity.java b/app/src/main/java/com/keylesspalace/tusky/SearchActivity.java index df7d8d445..9fad5f05b 100644 --- a/app/src/main/java/com/keylesspalace/tusky/SearchActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/SearchActivity.java @@ -147,14 +147,7 @@ public class SearchActivity extends BaseActivity implements SearchView.OnQueryTe SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); if (searchManager != null) { - List searchables = searchManager.getSearchablesInGlobalSearch(); SearchableInfo searchableInfo = searchManager.getSearchableInfo(getComponentName()); - for (SearchableInfo info : searchables) { - if (info.getSuggestAuthority() != null - && info.getSuggestAuthority().startsWith("applications")) { - searchableInfo = info; - } - } searchView.setSearchableInfo(searchableInfo); }