mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-07 05:47:40 +01:00
fix switching between grid and list view types
This commit is contained in:
parent
49b1a24089
commit
0762918673
@ -323,8 +323,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||
config.viewTypeFolders = it as Int
|
||||
invalidateOptionsMenu()
|
||||
setupLayoutManager()
|
||||
val dirs = getCurrentlyDisplayedDirs()
|
||||
directories_grid.adapter = null
|
||||
setupAdapter(getCurrentlyDisplayedDirs())
|
||||
setupAdapter(dirs)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user