catch exceptions thrown at clearing the recycle bin

This commit is contained in:
tibbi 2018-10-17 11:48:44 +02:00
parent 6e9f41567e
commit f196158204
1 changed files with 4 additions and 1 deletions

View File

@ -992,7 +992,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
config.lastBinCheck = System.currentTimeMillis()
Handler().postDelayed({
Thread {
mMediumDao.deleteOldRecycleBinItems(System.currentTimeMillis() - MONTH_MILLISECONDS)
try {
mMediumDao.deleteOldRecycleBinItems(System.currentTimeMillis() - MONTH_MILLISECONDS)
} catch (e: Exception) {
}
}.start()
}, 3000L)
}