mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-08 21:37:53 +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
|
||||
public boolean deleteDatabase(String name) {
|
||||
Realm realm = Realm.getDefaultInstance();
|
||||
realm.deleteAll();
|
||||
realm.close();
|
||||
realm.executeTransaction(realm1 -> {
|
||||
realm1.deleteAll();
|
||||
realm1.close();
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue