optimize settings cache calculation

This commit is contained in:
tibbi 2021-07-04 22:03:33 +02:00
parent a233600d28
commit d40294a822

View file

@ -614,8 +614,9 @@ class SettingsActivity : SimpleActivity() {
private fun setupClearCache() {
ensureBackgroundThread {
val size = cacheDir.getProperSize(true).formatSize()
runOnUiThread {
settings_clear_cache_size.text = cacheDir.getProperSize(true).formatSize()
settings_clear_cache_size.text = size
}
}