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