mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
catch exceptions thrown at clearing the recycle bin
This commit is contained in:
parent
6e9f41567e
commit
f196158204
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue