aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/Account/AccountDao.java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-09 07:28:22 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-09 07:28:22 +0000
commit17fc426ecb9c3b5c7cf8ada5231ab150248fbb21 (patch)
tree9193985eb84e301fce32ade7d6bb803b604e6388 /app/src/main/java/Account/AccountDao.java
parenta4583f1ecfe38099af544e1834a2911d1a46c5c1 (diff)
downloadinfinity-for-reddit-17fc426ecb9c3b5c7cf8ada5231ab150248fbb21.tar
infinity-for-reddit-17fc426ecb9c3b5c7cf8ada5231ab150248fbb21.tar.gz
infinity-for-reddit-17fc426ecb9c3b5c7cf8ada5231ab150248fbb21.tar.bz2
infinity-for-reddit-17fc426ecb9c3b5c7cf8ada5231ab150248fbb21.tar.lz
infinity-for-reddit-17fc426ecb9c3b5c7cf8ada5231ab150248fbb21.tar.xz
infinity-for-reddit-17fc426ecb9c3b5c7cf8ada5231ab150248fbb21.tar.zst
infinity-for-reddit-17fc426ecb9c3b5c7cf8ada5231ab150248fbb21.zip
Anonymous mode is available but it is not useable.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/Account/AccountDao.java3
1 files changed, 3 insertions, 0 deletions
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();