mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
use the directory grid view by default
This commit is contained in:
parent
74d179f86d
commit
5e733a44c3
2 changed files with 1 additions and 2 deletions
|
@ -38,7 +38,6 @@ import java.io.File
|
|||
import java.io.IOException
|
||||
|
||||
class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||
private val TAG = MediaActivity::class.java.simpleName
|
||||
private val SAVE_MEDIA_CNT = 40
|
||||
private val LAST_MEDIA_CHECK_PERIOD = 3000L
|
||||
|
||||
|
|
|
@ -326,7 +326,7 @@ class DirectoryAdapter(val activity: SimpleActivity, var dirs: MutableList<Direc
|
|||
}
|
||||
|
||||
override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): ViewHolder {
|
||||
val view = LayoutInflater.from(parent?.context).inflate(R.layout.directory_item_list, parent, false)
|
||||
val view = LayoutInflater.from(parent?.context).inflate(R.layout.directory_item_grid, parent, false)
|
||||
return ViewHolder(view, adapterListener, activity, multiSelectorMode, multiSelector, listener, isPickIntent, itemClick)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue