mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
update commons to 3.0.5
This commit is contained in:
parent
e7aeb44256
commit
df86b5d9ae
4 changed files with 21 additions and 21 deletions
|
@ -47,7 +47,7 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:3.0.3'
|
implementation 'com.simplemobiletools:commons:3.0.5'
|
||||||
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.8.0'
|
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.8.0'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.4.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.4.0'
|
||||||
implementation 'com.android.support:multidex:1.0.2'
|
implementation 'com.android.support:multidex:1.0.2'
|
||||||
|
|
|
@ -57,8 +57,8 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: MutableList<Direc
|
||||||
|
|
||||||
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
|
||||||
val dir = dirs[position]
|
val dir = dirs[position]
|
||||||
val view = holder.bindView(dir, !isPickIntent) {
|
val view = holder.bindView(dir, !isPickIntent) { itemView, layoutPosition ->
|
||||||
setupView(it, dir)
|
setupView(itemView, dir)
|
||||||
}
|
}
|
||||||
bindViewHolder(holder, position, view)
|
bindViewHolder(holder, position, view)
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,13 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: MutableList<Direc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onViewRecycled(holder: ViewHolder?) {
|
||||||
|
super.onViewRecycled(holder)
|
||||||
|
if (!activity.isActivityDestroyed()) {
|
||||||
|
Glide.with(activity).clear(holder?.itemView?.dir_thumbnail)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun checkHideBtnVisibility(menu: Menu) {
|
private fun checkHideBtnVisibility(menu: Menu) {
|
||||||
var hiddenCnt = 0
|
var hiddenCnt = 0
|
||||||
var unhiddenCnt = 0
|
var unhiddenCnt = 0
|
||||||
|
@ -306,13 +313,6 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: MutableList<Direc
|
||||||
return paths
|
return paths
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onViewRecycled(holder: ViewHolder?) {
|
|
||||||
super.onViewRecycled(holder)
|
|
||||||
if (!activity.isActivityDestroyed()) {
|
|
||||||
Glide.with(activity).clear(holder?.itemView?.dir_thumbnail)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun updateDirs(newDirs: ArrayList<Directory>) {
|
fun updateDirs(newDirs: ArrayList<Directory>) {
|
||||||
dirs = newDirs
|
dirs = newDirs
|
||||||
selectableItemCount = dirs.size
|
selectableItemCount = dirs.size
|
||||||
|
|
|
@ -43,8 +43,8 @@ class ManageFoldersAdapter(activity: BaseSimpleActivity, var folders: ArrayList<
|
||||||
|
|
||||||
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
|
||||||
val folder = folders[position]
|
val folder = folders[position]
|
||||||
val view = holder.bindView(folder) {
|
val view = holder.bindView(folder) { itemView, layoutPosition ->
|
||||||
setupView(it, folder)
|
setupView(itemView, folder)
|
||||||
}
|
}
|
||||||
bindViewHolder(holder, position, view)
|
bindViewHolder(holder, position, view)
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,8 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
||||||
|
|
||||||
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) {
|
||||||
val medium = media[position]
|
val medium = media[position]
|
||||||
val view = holder.bindView(medium, !allowMultiplePicks) {
|
val view = holder.bindView(medium, !allowMultiplePicks) { itemView, layoutPosition ->
|
||||||
setupView(it, medium)
|
setupView(itemView, medium)
|
||||||
}
|
}
|
||||||
bindViewHolder(holder, position, view)
|
bindViewHolder(holder, position, view)
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,13 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onViewRecycled(holder: ViewHolder?) {
|
||||||
|
super.onViewRecycled(holder)
|
||||||
|
if (!activity.isActivityDestroyed()) {
|
||||||
|
Glide.with(activity).clear(holder?.itemView?.medium_thumbnail)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun checkHideBtnVisibility(menu: Menu) {
|
private fun checkHideBtnVisibility(menu: Menu) {
|
||||||
var hiddenCnt = 0
|
var hiddenCnt = 0
|
||||||
var unhiddenCnt = 0
|
var unhiddenCnt = 0
|
||||||
|
@ -234,13 +241,6 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
||||||
return selectedMedia
|
return selectedMedia
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onViewRecycled(holder: ViewHolder?) {
|
|
||||||
super.onViewRecycled(holder)
|
|
||||||
if (!activity.isActivityDestroyed()) {
|
|
||||||
Glide.with(activity).clear(holder?.itemView?.medium_thumbnail)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun updateMedia(newMedia: ArrayList<Medium>) {
|
fun updateMedia(newMedia: ArrayList<Medium>) {
|
||||||
media = newMedia
|
media = newMedia
|
||||||
selectableItemCount = media.size
|
selectableItemCount = media.size
|
||||||
|
|
Loading…
Reference in a new issue