do not allow opening the freshly created folder while empty

This commit is contained in:
tibbi 2018-04-24 21:53:41 +02:00
parent 3f097a409b
commit 68412e8480
1 changed files with 4 additions and 1 deletions

View File

@ -713,7 +713,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
initZoomListener()
val fastscroller = if (config.scrollHorizontally) directories_horizontal_fastscroller else directories_vertical_fastscroller
DirectoryAdapter(this, dirs, this, directories_grid, isPickIntent(intent) || isGetAnyContentIntent(intent), fastscroller) {
itemClicked((it as Directory).path)
val path = (it as Directory).path
if (path != config.tempFolderPath) {
itemClicked(path)
}
}.apply {
setupZoomListener(mZoomListener)
directories_grid.adapter = this