From 984ea2c5b39900ad68d425660500b4a71f738e5e Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 2 Jun 2018 11:36:37 +0200 Subject: [PATCH] Fixed search limit --- app/src/main/java/eu/zderadicka/audioserve/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/zderadicka/audioserve/MainActivity.kt b/app/src/main/java/eu/zderadicka/audioserve/MainActivity.kt index bd5dfc3..892fd3a 100644 --- a/app/src/main/java/eu/zderadicka/audioserve/MainActivity.kt +++ b/app/src/main/java/eu/zderadicka/audioserve/MainActivity.kt @@ -516,7 +516,7 @@ class MainActivity : AppCompatActivity(), if (Intent.ACTION_SEARCH == intent.action && searchPrefix != null) { val query = intent.getStringExtra(SearchManager.QUERY) - if (query != null && query.length > 3) { + if (query != null && query.length >= 3) { val searchId = searchPrefix + query Log.d(LOG_TAG, "Searching for $query") newFolderFragment(searchId, query, true)