Compare commits

...

1 Commits

Author SHA1 Message Date
tom5079
647294daf2 what were i thinking?! 2020-08-04 17:50:07 +09:00
3 changed files with 14 additions and 12 deletions

View File

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

View File

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

View File

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