package net.ktnx.mobileledger.db;
-import android.os.AsyncTask;
-
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.room.ColumnInfo;
import androidx.room.Transaction;
import net.ktnx.mobileledger.dao.AccountDAO;
+import net.ktnx.mobileledger.dao.BaseDAO;
import net.ktnx.mobileledger.dao.OptionDAO;
import net.ktnx.mobileledger.dao.TransactionDAO;
import net.ktnx.mobileledger.utils.Misc;
trnDao.deleteSync(trnDao.getAllForProfileUnorderedSync(id));
}
public void wipeAllData() {
- AsyncTask.execute(this::wipeAllDataSync);
+ BaseDAO.runAsync(this::wipeAllDataSync);
}
}