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 2b879b9b5..8c8586f8f 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 @@ -573,7 +573,10 @@ class SettingsActivity : SimpleActivity() { private fun setupEmptyRecycleBin() { Thread { - mRecycleBinContentSize = galleryDB.MediumDao().getDeletedMedia().sumByLong { it.size } + try { + mRecycleBinContentSize = galleryDB.MediumDao().getDeletedMedia().sumByLong { it.size } + } catch (ignored: Exception) { + } runOnUiThread { settings_empty_recycle_bin_size.text = mRecycleBinContentSize.formatSize() }