diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt index 50cf0ba64..c27fd6530 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt @@ -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 } }