Fix uncaught exception

This commit is contained in:
J-Jamet
2021-03-02 14:48:15 +01:00
parent 744823cce4
commit 8de670fcf2

View File

@@ -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
}
}