recreate directories grid at changing sorting and filtering

This commit is contained in:
tibbi 2018-06-24 18:59:07 +02:00
parent 185e4dcb6c
commit 2d8ab6647d
1 changed files with 2 additions and 0 deletions

View File

@ -322,6 +322,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
private fun showSortingDialog() { private fun showSortingDialog() {
ChangeSortingDialog(this, true, false) { ChangeSortingDialog(this, true, false) {
directories_grid.adapter = null
if (config.directorySorting and SORT_BY_DATE_MODIFIED > 0 || config.directorySorting and SORT_BY_DATE_TAKEN > 0) { if (config.directorySorting and SORT_BY_DATE_MODIFIED > 0 || config.directorySorting and SORT_BY_DATE_TAKEN > 0) {
getDirectories() getDirectories()
} else { } else {
@ -334,6 +335,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
FilterMediaDialog(this) { FilterMediaDialog(this) {
mLoadedInitialPhotos = false mLoadedInitialPhotos = false
directories_refresh_layout.isRefreshing = true directories_refresh_layout.isRefreshing = true
directories_grid.adapter = null
getDirectories() getDirectories()
} }
} }