update commons to 5.2.10
This commit is contained in:
parent
ce7ba4bc7e
commit
b96717750b
|
@ -42,7 +42,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.2.1'
|
implementation 'com.simplemobiletools:commons:5.2.10'
|
||||||
|
|
||||||
implementation files('../libs/RootTools.jar')
|
implementation files('../libs/RootTools.jar')
|
||||||
}
|
}
|
||||||
|
|
|
@ -550,7 +550,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupView(view: View, fileDirItem: FileDirItem) {
|
private fun setupView(view: View, fileDirItem: FileDirItem) {
|
||||||
val isSelected = isKeySelected(fileDirItem.path.hashCode())
|
val isSelected = selectedKeys.contains(fileDirItem.path.hashCode())
|
||||||
view.apply {
|
view.apply {
|
||||||
item_frame.isSelected = isSelected
|
item_frame.isSelected = isSelected
|
||||||
val fileName = fileDirItem.name
|
val fileName = fileDirItem.name
|
||||||
|
|
|
@ -44,7 +44,7 @@ class ManageFavoritesAdapter(activity: BaseSimpleActivity, var favorites: ArrayL
|
||||||
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
|
||||||
val favorite = favorites[position]
|
val favorite = favorites[position]
|
||||||
holder.bindView(favorite, true, true) { itemView, layoutPosition ->
|
holder.bindView(favorite, true, true) { itemView, layoutPosition ->
|
||||||
setupView(itemView, favorite, isKeySelected(favorite.hashCode()))
|
setupView(itemView, favorite, selectedKeys.contains(favorite.hashCode()))
|
||||||
}
|
}
|
||||||
bindViewHolder(holder)
|
bindViewHolder(holder)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue