fix logging out

This commit is contained in:
Phillip Thelen 2017-05-22 12:24:50 +02:00
parent 0b1209c62b
commit 3c14449dd3

View file

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