Searched refs:mFavoriteNumberRepository (Results 1 – 2 of 2) sorted by relevance
41 private final FavoriteNumberRepository mFavoriteNumberRepository; field in FavoriteViewModel47 mFavoriteNumberRepository = FavoriteNumberRepository.getRepository(application); in FavoriteViewModel()51 favoriteContacts.addSource(mFavoriteNumberRepository.getFavoriteContacts(), contacts -> { in FavoriteViewModel()72 if (mFavoriteNumberRepository.getFavoriteContacts().getValue() != null) { in FavoriteViewModel()73 contactList.addAll(mFavoriteNumberRepository.getFavoriteContacts().getValue()); in FavoriteViewModel()98 mFavoriteNumberRepository.addToFavorite(contact, phoneNumber); in addToFavorite()
45 private final FavoriteNumberRepository mFavoriteNumberRepository; field in ContactDetailsViewModel49 mFavoriteNumberRepository = FavoriteNumberRepository.getRepository(application); in ContactDetailsViewModel()77 mFavoriteNumberRepository.addToFavorite(contact, phoneNumber); in addToFavorite()87 mFavoriteNumberRepository.removeFromFavorite(contact, phoneNumber); in removeFromFavorite()105 addSource(mFavoriteNumberRepository.getFavoriteContacts(), in ContactDetailsLiveData()