mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
optimize settings cache calculation
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user