update commons to 5.2.10

This commit is contained in:
tibbi 2018-10-26 10:39:21 +02:00
parent ce7ba4bc7e
commit b96717750b
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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