From 455fa7eb7767fc1d2235aafd630b1c04cb320d37 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 17 Dec 2021 12:27:37 +0100 Subject: [PATCH] do not clear media on destroy --- .../simplemobiletools/gallery/pro/activities/MediaActivity.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt index e179cc945..c8d077376 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MediaActivity.kt @@ -223,7 +223,6 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { } mTempShowHiddenHandler.removeCallbacksAndMessages(null) - mMedia.clear() } override fun onCreateOptionsMenu(menu: Menu): Boolean { @@ -840,8 +839,6 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener { media_empty_text_placeholder.text = getString(R.string.no_media_with_filters) } media_fastscroller.beVisibleIf(media_empty_text_placeholder.isGone()) - - val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath) setupAdapter() }