Flush previous image before loading the next in ImageViewer
This commit is contained in:
parent
bee2997f90
commit
23d017780f
@ -14,8 +14,8 @@ android {
|
||||
applicationId "sushi.hardcore.droidfs"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 20
|
||||
versionName "1.7.0"
|
||||
versionCode 21
|
||||
versionName "1.7.1"
|
||||
|
||||
ndk {
|
||||
abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
|
||||
|
@ -170,6 +170,8 @@ class ImageViewer: FileViewerActivity() {
|
||||
}
|
||||
|
||||
private fun loadImage(){
|
||||
bitmap = null
|
||||
requestBuilder = null
|
||||
loadWholeFile(filePath)?.let {
|
||||
val displayWithGlide = if (it.size < 5_000_000) {
|
||||
true
|
||||
|
Loading…
Reference in New Issue
Block a user