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) }