diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt index e903ad565..b68d69d09 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt @@ -125,6 +125,6 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va override fun onPostExecute(dirs: ArrayList) { super.onPostExecute(dirs) - callback.invoke(dirs) + callback(dirs) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt index 89342dc00..68595ae46 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt @@ -17,6 +17,6 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo override fun onPostExecute(media: ArrayList) { super.onPostExecute(media) - callback.invoke(media) + callback(media) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideDecoder.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideDecoder.kt index 5c5cbacbd..1e3796359 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideDecoder.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/GlideDecoder.kt @@ -12,7 +12,6 @@ import com.bumptech.glide.load.engine.DiskCacheStrategy import com.bumptech.glide.request.RequestOptions import com.davemorrissey.labs.subscaleview.decoder.ImageDecoder - class GlideDecoder : ImageDecoder { override fun decode(context: Context, uri: Uri): Bitmap { val options = RequestOptions()