From d0d65b2a42e1a6f2286616fb63450ae52d9230b8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 2 Sep 2017 19:53:18 +0200 Subject: [PATCH] remove some invoke calls --- .../gallery/asynctasks/GetDirectoriesAsynctask.kt | 2 +- .../simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt | 2 +- .../com/simplemobiletools/gallery/helpers/GlideDecoder.kt | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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()