From 556047aa42b8fba25be56c38e5e919690444858b Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 19 Aug 2019 17:57:04 +0800 Subject: Finish MainActivity if clicking a notification for another user. --- app/src/main/java/Account/AccountViewModel.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app/src/main/java/Account/AccountViewModel.java') diff --git a/app/src/main/java/Account/AccountViewModel.java b/app/src/main/java/Account/AccountViewModel.java index 15fe6143..53fb0013 100644 --- a/app/src/main/java/Account/AccountViewModel.java +++ b/app/src/main/java/Account/AccountViewModel.java @@ -14,20 +14,14 @@ import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase; public class AccountViewModel extends AndroidViewModel { private AccountRepository mAccountRepository; - private LiveData mAccountLiveData; private LiveData> mAccountsExceptCurrentAccountLiveData; public AccountViewModel(Application application, RedditDataRoomDatabase redditDataRoomDatabase, String id) { super(application); mAccountRepository = new AccountRepository(redditDataRoomDatabase, id); - mAccountLiveData = mAccountRepository.getAccountLiveData(); mAccountsExceptCurrentAccountLiveData = mAccountRepository.getAccountsExceptCurrentAccountLiveData(); } - public LiveData getAccountLiveData() { - return mAccountLiveData; - } - public LiveData> getAccountsExceptCurrentAccountLiveData() { return mAccountsExceptCurrentAccountLiveData; } -- cgit v1.2.3