diff options
| author | Yiqun Wu <yiqunw@google.com> | 2020-01-17 17:51:14 -0800 |
|---|---|---|
| committer | Yiqun Wu <yiqunw@google.com> | 2020-01-23 14:29:44 -0800 |
| commit | 610df6381e9c19afcd60e5f78ca272c9c2320306 (patch) | |
| tree | f745d7d39f3e2b9b9f7cc057c85dea8ec8a06b98 /tests | |
| parent | 98741b982b5e12bb0b3781ddeba8598b8961ceb8 (diff) | |
| download | platform_packages_apps_Car_Dialer-610df6381e9c19afcd60e5f78ca272c9c2320306.tar.gz platform_packages_apps_Car_Dialer-610df6381e9c19afcd60e5f78ca272c9c2320306.tar.bz2 platform_packages_apps_Car_Dialer-610df6381e9c19afcd60e5f78ca272c9c2320306.zip | |
Badge for favorite contacts imported from phone.
In favorite page, favorite contacts from phone and local favorites will
be grouped with header.
In the add-to-favorite flow and contact details page use different icon
to distinguish the phone favorites from local favorites. Also updated
the subtitle of the phone numbers to reflect the source.
Fixes: 143498802
Test: manually
Change-Id: I72c3e24b2cf5f8d0934225c67635088574420165
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/robotests/src/com/android/car/dialer/ui/favorite/FavoriteFragmentTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/robotests/src/com/android/car/dialer/ui/favorite/FavoriteFragmentTest.java b/tests/robotests/src/com/android/car/dialer/ui/favorite/FavoriteFragmentTest.java index 5fcb0064..b28c4dd6 100644 --- a/tests/robotests/src/com/android/car/dialer/ui/favorite/FavoriteFragmentTest.java +++ b/tests/robotests/src/com/android/car/dialer/ui/favorite/FavoriteFragmentTest.java @@ -71,7 +71,7 @@ public class FavoriteFragmentTest { UiCallManager.set(mMockUiCallManager); when(mMockPhoneNumber.getRawNumber()).thenReturn(RAW_NUMBER); - MutableLiveData<FutureData<List<Contact>>> favoriteContacts = new MutableLiveData<>(); + MutableLiveData<FutureData<List<Object>>> favoriteContacts = new MutableLiveData<>(); favoriteContacts.setValue(new FutureData<>(false, Arrays.asList(mMockContact))); ShadowAndroidViewModelFactory.add(FavoriteViewModel.class, mMockFavoriteViewModel); when(mMockFavoriteViewModel.getFavoriteContacts()).thenReturn(favoriteContacts); |
