Fix Dreams making media turn to PIP screen.

Bug: 237475987
Test: Tested manually, CTS test here ag/20435513
Change-Id: Ic4217fd57b0138c905ba67a6314b6235cddc97b1
This commit is contained in:
Victor Truong
2022-11-09 11:31:16 -05:00
parent 70d368f38e
commit 5e4e096eea

View File

@@ -1294,7 +1294,7 @@ public class DreamService extends Service implements Window.Callback {
if (!mWindowless) {
Intent i = new Intent(this, DreamActivity.class);
i.setPackage(getApplicationContext().getPackageName());
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NO_USER_ACTION);
i.putExtra(DreamActivity.EXTRA_CALLBACK, new DreamActivityCallbacks(mDreamToken));
final ServiceInfo serviceInfo = fetchServiceInfo(this,
new ComponentName(this, getClass()));