mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Clear corrupted db: add some logs
This commit is contained in:
parent
b5c6c1af0d
commit
abbc62dd35
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ internal class SessionRealmConfigurationFactory @Inject constructor(private val
|
|||
fun create(directory: File, userMd5: String): RealmConfiguration {
|
||||
val shouldClearRealm = sharedPreferences.getBoolean("$REALM_SHOULD_CLEAR_FLAG_$userMd5", false)
|
||||
if (shouldClearRealm) {
|
||||
Timber.v("************************************************************")
|
||||
Timber.v("The realm file session was corrupted and couldn't be loaded. ")
|
||||
Timber.v("The file has been deleted to recover. ")
|
||||
Timber.v("************************************************************")
|
||||
directory.deleteRecursively()
|
||||
}
|
||||
sharedPreferences
|
||||
|
|
Loading…
Add table
Reference in a new issue