diff options
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/Account/AccountRepository.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/Account/AccountRepository.java b/app/src/main/java/Account/AccountRepository.java index 49bdfacf..c495579d 100644 --- a/app/src/main/java/Account/AccountRepository.java +++ b/app/src/main/java/Account/AccountRepository.java @@ -1,17 +1,17 @@ package Account; -import android.app.Application; import android.os.AsyncTask; import androidx.lifecycle.LiveData; +import ml.docilealligator.infinityforreddit.RedditDataRoomDatabase; + public class AccountRepository { private AccountDao mAccountDao; private LiveData<Account> mAccountLiveData; - AccountRepository(Application application, String username) { - mAccountDao = AccountRoomDatabase.getDatabase(application).accountDao(); - + AccountRepository(RedditDataRoomDatabase redditDataRoomDatabase, String username) { + mAccountDao = redditDataRoomDatabase.accountDao(); mAccountLiveData = mAccountDao.getAccountLiveData(username); } |