From 17fc426ecb9c3b5c7cf8ada5231ab150248fbb21 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 9 Aug 2019 15:28:22 +0800 Subject: Anonymous mode is available but it is not useable. --- app/src/main/java/Account/AccountDao.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/java/Account/AccountDao.java') diff --git a/app/src/main/java/Account/AccountDao.java b/app/src/main/java/Account/AccountDao.java index b3672bb5..aa7b7f19 100644 --- a/app/src/main/java/Account/AccountDao.java +++ b/app/src/main/java/Account/AccountDao.java @@ -19,6 +19,9 @@ public interface AccountDao { @Query("UPDATE accounts SET is_current_user = 0 WHERE is_current_user = 1") void markAllAccountsNonCurrent(); + @Query("DELETE FROM accounts WHERE is_current_user = 1") + void deleteCurrentAccount(); + @Query("DELETE FROM accounts") void deleteAllAccounts(); -- cgit v1.2.3