From 307e887fc5b78b1919cd14e85171c6d94f780688 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 2 Jan 2020 16:30:24 +0100 Subject: [PATCH] fix #1695, do not allow filtering out all file types --- .../gallery/pro/dialogs/FilterMediaDialog.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/FilterMediaDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/FilterMediaDialog.kt index b4c072021..dc8a06293 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/FilterMediaDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/FilterMediaDialog.kt @@ -45,6 +45,10 @@ class FilterMediaDialog(val activity: BaseSimpleActivity, val callback: (result: if (view.filter_media_portraits.isChecked) result += TYPE_PORTRAITS + if (result == 0) { + result = TYPE_DEFAULT_FILTER + } + activity.config.filterMedia = result callback(result) }