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"
|
applicationId "sushi.hardcore.droidfs"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 20
|
versionCode 21
|
||||||
versionName "1.7.0"
|
versionName "1.7.1"
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
|
abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
|
||||||
|
@ -170,6 +170,8 @@ class ImageViewer: FileViewerActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun loadImage(){
|
private fun loadImage(){
|
||||||
|
bitmap = null
|
||||||
|
requestBuilder = null
|
||||||
loadWholeFile(filePath)?.let {
|
loadWholeFile(filePath)?.let {
|
||||||
val displayWithGlide = if (it.size < 5_000_000) {
|
val displayWithGlide = if (it.size < 5_000_000) {
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user