mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-04 21:37:30 +01:00
fix #1695, do not allow filtering out all file types
This commit is contained in:
parent
65e59e2147
commit
307e887fc5
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user