mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix uncaught exception
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
package com.kunzisoft.keepass.database.element.icon
|
||||
|
||||
import android.util.Log
|
||||
import com.kunzisoft.keepass.database.element.database.BinaryPool
|
||||
import com.kunzisoft.keepass.icons.IconPack.Companion.NB_ICONS
|
||||
import java.io.File
|
||||
@@ -87,6 +88,14 @@ class IconsManager {
|
||||
* Clear the cache of icons
|
||||
*/
|
||||
fun clearCache() {
|
||||
try {
|
||||
customCache.clear()
|
||||
} catch(e: Exception) {
|
||||
Log.e(TAG, "Unable to clear cache", e)
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private val TAG = IconsManager::class.java.name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user