From 5583fe9f45f0c0f934343ea4bcaf0ff6df4ab545 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 10 Jan 2023 18:52:27 +0100 Subject: [PATCH] show all files by default in SearchActivity --- .../simplemobiletools/gallery/pro/activities/SearchActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SearchActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SearchActivity.kt index 05c3a1dda..aa232467e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SearchActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SearchActivity.kt @@ -112,7 +112,7 @@ class SearchActivity : SimpleActivity(), MediaOperationsListener { private fun setupAdapter() { val currAdapter = search_grid.adapter if (currAdapter == null) { - MediaAdapter(this, ArrayList(), this, false, false, "", search_grid) { + MediaAdapter(this, mAllMedia, this, false, false, "", search_grid) { if (it is Medium) { itemClicked(it.path) }