remove some invoke calls

This commit is contained in:
tibbi 2017-09-02 19:53:18 +02:00
parent 90018b0182
commit d0d65b2a42
3 changed files with 2 additions and 3 deletions

View file

@ -125,6 +125,6 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
override fun onPostExecute(dirs: ArrayList<Directory>) {
super.onPostExecute(dirs)
callback.invoke(dirs)
callback(dirs)
}
}

View file

@ -17,6 +17,6 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo
override fun onPostExecute(media: ArrayList<Medium>) {
super.onPostExecute(media)
callback.invoke(media)
callback(media)
}
}

View file

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