mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
catch exceptions thrown at clearing the recycle bin
This commit is contained in:
@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user