From fc1d17397c1fa4dc4b1fa08d20799a5d93ca30f2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 4 Jul 2018 11:22:39 +0200 Subject: [PATCH] if something goes wrong at storing ever shown folders, just clear it --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index cee9d0d83..691df62ca 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -786,7 +786,8 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { try { config.everShownFolders = everShownFolders - } catch (ignored: Exception) { + } catch (e: Exception) { + config.everShownFolders = HashSet() } }