Commit 550421ea authored by Simeon Anfinrud's avatar Simeon Anfinrud Committed by Commit Bot

[chromecast] Add FLAG_ACTIVITY_TASK_ON_HOME to CWCA.

This ensures that leaving the Cast Activity by pressing Back on
the remote will return to the Home screen, rather than whatever
app had been in the foreground previously.

Bug: Internal b/163998933
Test: launch Netflix with remote, Cast YouTube, press Back
Change-Id: Ib8936e874a80441a4e5c163794ff2576ffbef717
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2438991
Commit-Queue: Simeon Anfinrud <sanfin@chromium.org>
Commit-Queue: Luke Halliwell (slow) <halliwell@chromium.org>
Auto-Submit: Simeon Anfinrud <sanfin@chromium.org>
Reviewed-by: default avatarLuke Halliwell (slow) <halliwell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811895}
parent 31fcacb3
...@@ -330,7 +330,7 @@ public class CastWebContentsIntentUtils { ...@@ -330,7 +330,7 @@ public class CastWebContentsIntentUtils {
intent.putExtra(INTENT_EXTRA_TURN_ON_SCREEN, turnOnScreen); intent.putExtra(INTENT_EXTRA_TURN_ON_SCREEN, turnOnScreen);
intent.putExtra(INTENT_EXTRA_REMOTE_CONTROL_MODE, isRemoteControlMode); intent.putExtra(INTENT_EXTRA_REMOTE_CONTROL_MODE, isRemoteControlMode);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP
| Intent.FLAG_ACTIVITY_NO_ANIMATION); | Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_TASK_ON_HOME);
return intent; return intent;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment