mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
stop loading fullscreen glide view on destroy
This commit is contained in:
parent
8e798feaaa
commit
36dec5e004
1 changed files with 8 additions and 0 deletions
|
@ -21,6 +21,7 @@ import android.view.ViewGroup
|
|||
import com.alexvasilkov.gestures.GestureController
|
||||
import com.alexvasilkov.gestures.State
|
||||
import com.bumptech.glide.Glide
|
||||
import com.bumptech.glide.Priority
|
||||
import com.bumptech.glide.load.DataSource
|
||||
import com.bumptech.glide.load.DecodeFormat
|
||||
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
||||
|
@ -228,6 +229,13 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
mView.subsampling_view.recycle()
|
||||
}
|
||||
|
||||
try {
|
||||
if (context != null) {
|
||||
Glide.with(context!!).clear(mView.gestures_view)
|
||||
}
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
|
||||
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)
|
||||
if (mCurrentRotationDegrees != 0) {
|
||||
Thread {
|
||||
|
|
Loading…
Reference in a new issue