fix a glitch with animated webp files stucking
This commit is contained in:
parent
f3c55e1df8
commit
e7cb91cd34
2 changed files with 4 additions and 1 deletions
|
@ -289,7 +289,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
super.setMenuVisibility(menuVisible)
|
||||
mIsFragmentVisible = menuVisible
|
||||
if (mWasInit) {
|
||||
if (!mMedium.isGIF()) {
|
||||
if (!mMedium.isGIF() && !mMedium.isWebP()) {
|
||||
photoFragmentVisibilityChanged(menuVisible)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ import com.bumptech.glide.signature.ObjectKey
|
|||
import com.simplemobiletools.commons.extensions.formatDate
|
||||
import com.simplemobiletools.commons.extensions.formatSize
|
||||
import com.simplemobiletools.commons.extensions.getFilenameExtension
|
||||
import com.simplemobiletools.commons.extensions.isWebP
|
||||
import com.simplemobiletools.commons.helpers.SORT_BY_DATE_MODIFIED
|
||||
import com.simplemobiletools.commons.helpers.SORT_BY_NAME
|
||||
import com.simplemobiletools.commons.helpers.SORT_BY_PATH
|
||||
|
@ -35,6 +36,8 @@ data class Medium(
|
|||
private const val serialVersionUID = -6553149366975655L
|
||||
}
|
||||
|
||||
fun isWebP() = name.isWebP()
|
||||
|
||||
fun isGIF() = type == TYPE_GIFS
|
||||
|
||||
fun isImage() = type == TYPE_IMAGES
|
||||
|
|
Loading…
Reference in a new issue