diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-19 09:57:04 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-19 09:57:04 +0000 |
commit | 556047aa42b8fba25be56c38e5e919690444858b (patch) | |
tree | 0c2ee2a1ac74e1f2eafbcca7137cd562b90495c1 /app/src/main/java/Account/AccountDao.java | |
parent | 5bf002629d92610c152ee3ef9bd2ca7b71fd5cbc (diff) | |
download | infinity-for-reddit-556047aa42b8fba25be56c38e5e919690444858b.tar infinity-for-reddit-556047aa42b8fba25be56c38e5e919690444858b.tar.gz infinity-for-reddit-556047aa42b8fba25be56c38e5e919690444858b.tar.bz2 infinity-for-reddit-556047aa42b8fba25be56c38e5e919690444858b.tar.lz infinity-for-reddit-556047aa42b8fba25be56c38e5e919690444858b.tar.xz infinity-for-reddit-556047aa42b8fba25be56c38e5e919690444858b.tar.zst infinity-for-reddit-556047aa42b8fba25be56c38e5e919690444858b.zip |
Finish MainActivity if clicking a notification for another user.
Diffstat (limited to 'app/src/main/java/Account/AccountDao.java')
-rw-r--r-- | app/src/main/java/Account/AccountDao.java | 3 |
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 c05e5552..67caf71d 100644 --- a/app/src/main/java/Account/AccountDao.java +++ b/app/src/main/java/Account/AccountDao.java @@ -37,6 +37,9 @@ public interface AccountDao { @Query("SELECT * FROM accounts WHERE is_current_user = 1 LIMIT 1") Account getCurrentAccount(); + @Query("SELECT * FROM accounts WHERE is_current_user = 1 LIMIT 1") + LiveData<Account> getCurrentAccountLiveData(); + @Query("UPDATE accounts SET profile_image_url = :profileImageUrl, banner_image_url = :bannerImageUrl, " + "karma = :karma WHERE username = :username") void updateAccountInfo(String username, String profileImageUrl, String bannerImageUrl, int karma); |