Merge "Fix Dreams making media turn to PIP screen." into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-11-15 15:33:32 +00:00
committed by Android (Google) Code Review

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()));