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
|
||||
invalidateOptionsMenu()
|
||||
setupLayoutManager()
|
||||
val dirs = getCurrentlyDisplayedDirs()
|
||||
directories_grid.adapter = null
|
||||
setupAdapter(getCurrentlyDisplayedDirs())
|
||||
setupAdapter(dirs)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue