Merge "Launch subscreens with the correct user" into rvc-dev

This commit is contained in:
Julia Reynolds
2020-04-16 13:57:50 +00:00
committed by Android (Google) Code Review
4 changed files with 24 additions and 12 deletions

View File

@@ -191,7 +191,7 @@ public class ConversationListPreferenceControllerTest {
}
@Test
public void testGetIntent() {
public void testGetSubSettingLauncher() {
ConversationChannelWrapper ccw = new ConversationChannelWrapper();
NotificationChannel channel = new NotificationChannel("a", "child", 2);
channel.setConversationId("parent", "convo id");
@@ -199,7 +199,7 @@ public class ConversationListPreferenceControllerTest {
ccw.setPkg("pkg");
ccw.setUid(1);
ccw.setParentChannelLabel("parent label");
Intent intent = mController.getIntent(ccw, "title");
Intent intent = mController.getSubSettingLauncher(ccw, "title").toIntent();
Bundle extras = intent.getExtras();
assertThat(extras.getString(AppInfoBase.ARG_PACKAGE_NAME)).isEqualTo(ccw.getPkg());