mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
remove some invoke calls
This commit is contained in:
parent
90018b0182
commit
d0d65b2a42
3 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue