fix #1695, do not allow filtering out all file types

This commit is contained in:
tibbi 2020-01-02 16:30:24 +01:00
parent 65e59e2147
commit 307e887fc5

View file

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