mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
catch exceptions thrown at getting recycle bin files in the settings
This commit is contained in:
@ -573,7 +573,10 @@ class SettingsActivity : SimpleActivity() {
|
||||
|
||||
private fun setupEmptyRecycleBin() {
|
||||
Thread {
|
||||
try {
|
||||
mRecycleBinContentSize = galleryDB.MediumDao().getDeletedMedia().sumByLong { it.size }
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
runOnUiThread {
|
||||
settings_empty_recycle_bin_size.text = mRecycleBinContentSize.formatSize()
|
||||
}
|
||||
|
Reference in New Issue
Block a user