Move setTaskAlwaysOnTop from TaskView to BubbleExpandedView.

Bug: 178212126
Bug: 175918200
Test: [Car] launch Dialer and check Dialer button is highlighted.
Test: [Phone] launch DetailDialog and check Navigation bar.
Change-Id: Ic10dca7e25a8828f8da36130ec78d2e24c765609
This commit is contained in:
Yuncheol Heo
2021-01-22 13:38:16 -08:00
parent cbb25bcfc3
commit 4664023109
3 changed files with 1 additions and 2 deletions

View File

@@ -157,7 +157,6 @@ public class TaskView extends SurfaceView implements SurfaceHolder.Callback,
});
options.setLaunchCookie(launchCookie);
options.setLaunchWindowingMode(WINDOWING_MODE_MULTI_WINDOW);
options.setTaskAlwaysOnTop(true);
}
/**

View File

@@ -137,6 +137,7 @@ public class BubbleExpandedView extends LinearLayout {
+ getBubbleKey());
}
try {
options.setTaskAlwaysOnTop(true);
if (!mIsOverflow && mBubble.hasMetadataShortcutId()) {
options.setApplyActivityFlagsForBubbles(true);
mTaskView.startShortcutActivity(mBubble.getShortcutInfo(),

View File

@@ -129,7 +129,6 @@ public class TaskViewTest extends ShellTestCase {
verify(mOrganizer).setPendingLaunchCookieListener(any(), eq(mTaskView));
assertThat(options.getLaunchWindowingMode()).isEqualTo(WINDOWING_MODE_MULTI_WINDOW);
assertThat(options.getTaskAlwaysOnTop()).isTrue();
}
@Test