fix switching between grid and list view types

This commit is contained in:
tibbi 2018-04-24 09:35:31 +02:00
parent 49b1a24089
commit 0762918673

View file

@ -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)
}
}