mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
fix logging out
This commit is contained in:
parent
0b1209c62b
commit
3c14449dd3
1 changed files with 4 additions and 2 deletions
|
|
@ -263,8 +263,10 @@ public abstract class HabiticaBaseApplication extends MultiDexApplication {
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteDatabase(String name) {
|
public boolean deleteDatabase(String name) {
|
||||||
Realm realm = Realm.getDefaultInstance();
|
Realm realm = Realm.getDefaultInstance();
|
||||||
realm.deleteAll();
|
realm.executeTransaction(realm1 -> {
|
||||||
realm.close();
|
realm1.deleteAll();
|
||||||
|
realm1.close();
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue