Prevent crash due to EncryptedSharedPreferences failing to be created

This commit is contained in:
Sylvain Berfini 2022-06-27 09:13:27 +02:00
parent eb634c74e7
commit 40de347237

View file

@ -61,6 +61,9 @@ class CorePreferences constructor(private val context: Context) {
} catch (kse: KeyStoreException) {
Log.e("[VFS] Keystore exception: $kse")
null
} catch (e: Exception) {
Log.e("[VFS] Exception: $e")
null
}
}