optimize settings cache calculation
This commit is contained in:
parent
a233600d28
commit
d40294a822
|
@ -614,8 +614,9 @@ class SettingsActivity : SimpleActivity() {
|
||||||
|
|
||||||
private fun setupClearCache() {
|
private fun setupClearCache() {
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
|
val size = cacheDir.getProperSize(true).formatSize()
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
settings_clear_cache_size.text = cacheDir.getProperSize(true).formatSize()
|
settings_clear_cache_size.text = size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue