Merge "Ensure icons on app filtering page" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ad1a789a86
@@ -30,7 +30,6 @@ import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.VersionedPackage;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Looper;
|
||||
import android.service.notification.NotificationListenerFilter;
|
||||
import android.util.ArraySet;
|
||||
@@ -65,6 +64,7 @@ public class BridgedAppsPreferenceControllerTest {
|
||||
PreferenceScreen mScreen;
|
||||
@Mock
|
||||
ApplicationsState mAppState;
|
||||
|
||||
private ApplicationsState.AppEntry mAppEntry;
|
||||
private ApplicationsState.AppEntry mAppEntry2;
|
||||
|
||||
@@ -92,8 +92,6 @@ public class BridgedAppsPreferenceControllerTest {
|
||||
|
||||
mAppEntry.info = ai;
|
||||
mAppEntry.label = "hi";
|
||||
Drawable icon = mock(Drawable.class);
|
||||
mAppEntry.icon = icon;
|
||||
|
||||
mController = new BridgedAppsPreferenceController(mContext, "key");
|
||||
mController.setCn(mCn);
|
||||
@@ -167,7 +165,7 @@ public class BridgedAppsPreferenceControllerTest {
|
||||
|
||||
assertThat(actual.isChecked()).isTrue();
|
||||
assertThat(actual.getTitle()).isEqualTo("hi");
|
||||
assertThat(actual.getIcon()).isEqualTo(mAppEntry.icon);
|
||||
assertThat(actual.getIcon()).isNotNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user