Commit 8f86e907 authored by jaekyun's avatar jaekyun Committed by Commit bot

Start a market Intent with Intent.FLAG_ACTIVITY_NEW_TASK

In document mode, the current task could be removed after a market Intent
is started.
So, we should start it in a new task.

BUG=487295

Review URL: https://codereview.chromium.org/1149863003

Cr-Commit-Position: refs/heads/master@{#330836}
parent 16eaa6b0
......@@ -247,6 +247,7 @@ public class ExternalNavigationHandler {
+ "&referrer=" + mDelegate.getPackageName()));
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.setPackage("com.android.vending");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mDelegate.startActivity(intent);
return OverrideUrlLoadingResult.OVERRIDE_WITH_EXTERNAL_INTENT;
} catch (ActivityNotFoundException ex) {
......
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