fix #1695, do not allow filtering out all file types
This commit is contained in:
parent
65e59e2147
commit
307e887fc5
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue