From 063406a4718fa0c171d85d2128623b15945cae04 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 2 Mar 2018 17:14:37 +0100 Subject: [PATCH] update commons to 3.14.6 --- app/build.gradle | 4 ++-- .../simplemobiletools/gallery/adapters/DirectoryAdapter.kt | 6 +++--- .../gallery/adapters/ManageFoldersAdapter.kt | 2 +- .../gallery/adapters/ManageHiddenFoldersAdapter.kt | 2 +- .../com/simplemobiletools/gallery/adapters/MediaAdapter.kt | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 89fd8cf98..810c0e601 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,9 +46,9 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.14.5' + implementation 'com.simplemobiletools:commons:3.14.6' implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0' - implementation 'com.android.support:multidex:1.0.2' + implementation 'com.android.support:multidex:1.0.3' implementation 'com.google.code.gson:gson:2.8.2' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.8' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index a795756e5..20e7802d7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -51,7 +51,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: MutableList, view?.medium_check?.beVisibleIf(select) } - override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): ViewHolder { + override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { val layoutType = if (isListViewType) R.layout.photo_video_item_list else R.layout.photo_video_item_grid return createViewHolder(layoutType, parent) } @@ -107,10 +107,10 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList, override fun getSelectableItemCount() = media.size - override fun onViewRecycled(holder: ViewHolder?) { + override fun onViewRecycled(holder: ViewHolder) { super.onViewRecycled(holder) if (!activity.isActivityDestroyed()) { - val itemView = holder?.itemView + val itemView = holder.itemView visibleItemPaths.remove(itemView?.photo_name?.tag) Glide.with(activity).clear(itemView?.medium_thumbnail!!) }