mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
fix switching between grid and list view types
This commit is contained in:
parent
49b1a24089
commit
0762918673
1 changed files with 2 additions and 1 deletions
|
@ -323,8 +323,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||||
config.viewTypeFolders = it as Int
|
config.viewTypeFolders = it as Int
|
||||||
invalidateOptionsMenu()
|
invalidateOptionsMenu()
|
||||||
setupLayoutManager()
|
setupLayoutManager()
|
||||||
|
val dirs = getCurrentlyDisplayedDirs()
|
||||||
directories_grid.adapter = null
|
directories_grid.adapter = null
|
||||||
setupAdapter(getCurrentlyDisplayedDirs())
|
setupAdapter(dirs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue