Skip to content

Commit

Permalink
Fixed search limit
Browse files Browse the repository at this point in the history
  • Loading branch information
izderadicka committed Jun 2, 2018
1 parent 3b30a76 commit 984ea2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/eu/zderadicka/audioserve/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 984ea2c

Please sign in to comment.