catch exceptions thrown at clearing the recycle bin
This commit is contained in:
parent
6e9f41567e
commit
f196158204
|
@ -992,7 +992,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
config.lastBinCheck = System.currentTimeMillis()
|
config.lastBinCheck = System.currentTimeMillis()
|
||||||
Handler().postDelayed({
|
Handler().postDelayed({
|
||||||
Thread {
|
Thread {
|
||||||
mMediumDao.deleteOldRecycleBinItems(System.currentTimeMillis() - MONTH_MILLISECONDS)
|
try {
|
||||||
|
mMediumDao.deleteOldRecycleBinItems(System.currentTimeMillis() - MONTH_MILLISECONDS)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
}
|
||||||
}.start()
|
}.start()
|
||||||
}, 3000L)
|
}, 3000L)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue