From 73cf37d46362f9cf0fa5d1a972134c268d5f5918 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 18 Jan 2021 19:33:40 +0100 Subject: [PATCH] use the currently shown directories --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index 622346dba..496f0968d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -524,7 +524,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { invalidateOptionsMenu() setupLayoutManager() directories_grid.adapter = null - setupAdapter(mDirs) + setupAdapter(getRecyclerAdapter()?.dirs ?: mDirs) } }