small photofragment update
This commit is contained in:
parent
04339ac28b
commit
9cabc09e4f
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ import com.bumptech.glide.Glide
|
|||
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
||||
import com.davemorrissey.labs.subscaleview.ImageSource
|
||||
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
|
||||
import com.simplemobiletools.gallery.helpers.MEDIUM
|
||||
import com.simplemobiletools.gallery.R
|
||||
import com.simplemobiletools.gallery.extensions.getRealPathFromURI
|
||||
import com.simplemobiletools.gallery.helpers.MEDIUM
|
||||
import com.simplemobiletools.gallery.models.Medium
|
||||
import kotlinx.android.synthetic.main.pager_photo_item.view.*
|
||||
|
||||
|
@ -32,7 +32,7 @@ class PhotoFragment : ViewPagerFragment(), View.OnClickListener {
|
|||
view.gif_view.apply {
|
||||
visibility = View.VISIBLE
|
||||
Glide.with(context).load(medium.path).asGif().diskCacheStrategy(DiskCacheStrategy.NONE).into(this)
|
||||
this.setOnClickListener(this@PhotoFragment)
|
||||
setOnClickListener(this@PhotoFragment)
|
||||
}
|
||||
} else {
|
||||
subsamplingView.apply {
|
||||
|
|
Loading…
Reference in a new issue