what were i thinking?!

This commit is contained in:
tom5079
2020-08-04 17:50:07 +09:00
parent 6ebc386474
commit 647294daf2
3 changed files with 14 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ android {
minSdkVersion 16
targetSdkVersion 29
versionCode 57
versionName "4.20-hotfix1"
versionName "4.20-hotfix2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true

View File

@@ -12,7 +12,7 @@
"filters": [],
"properties": [],
"versionCode": 57,
"versionName": "4.20-hotfix1",
"versionName": "4.20-hotfix2",
"enabled": true,
"outputFile": "app-release.apk"
}

View File

@@ -111,7 +111,7 @@ class SettingsFragment :
CoroutineScope(Dispatchers.IO).launch {
getDirSize(dir).let {
launch(Dispatchers.Main) {
this@with.summary = getDirSize(dir)
this@with.summary = it
}
}
}
@@ -134,7 +134,7 @@ class SettingsFragment :
CoroutineScope(Dispatchers.IO).launch {
getDirSize(dir).let {
launch(Dispatchers.Main) {
this@with.summary = getDirSize(dir)
this@with.summary = it
}
}
}
@@ -302,11 +302,12 @@ class SettingsFragment :
"delete_cache" -> {
val dir = File(requireContext().cacheDir, "imageCache")
summary = getString(R.string.settings_storage_usage_loading)
CoroutineScope(Dispatchers.IO).launch {
summary = getString(R.string.settings_storage_usage_loading)
launch(Dispatchers.Main) {
this@with.summary = getDirSize(dir)
getDirSize(dir).let {
launch(Dispatchers.Main) {
this@with.summary = it
}
}
}
@@ -315,11 +316,12 @@ class SettingsFragment :
"delete_downloads" -> {
val dir = getDownloadDirectory(requireContext())
summary = getString(R.string.settings_storage_usage_loading)
CoroutineScope(Dispatchers.IO).launch {
summary = getString(R.string.settings_storage_usage_loading)
launch(Dispatchers.Main) {
this@with.summary = getDirSize(dir)
getDirSize(dir).let {
launch(Dispatchers.Main) {
this@with.summary = it
}
}
}