| Index: shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverActivity.java
|
| diff --git a/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverActivity.java b/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverActivity.java
|
| index f929d7dc4cede5aa9ea456dd8443b8d0ce92e71e..b198ba1f8f2b93c3bad5d54aaffded3c2f9be774 100644
|
| --- a/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverActivity.java
|
| +++ b/shell/android/apk/src/org/chromium/mojo/shell/IntentReceiverActivity.java
|
| @@ -19,7 +19,11 @@ public class IntentReceiverActivity extends Activity {
|
| protected void onCreate(final Bundle savedInstanceState) {
|
| super.onCreate(savedInstanceState);
|
| if (processIntent(getIntent())) {
|
| - finish();
|
| + if (isTaskRoot()) {
|
| + finishAndRemoveTask();
|
| + } else {
|
| + finish();
|
| + }
|
| }
|
| }
|
|
|
| @@ -56,6 +60,10 @@ public class IntentReceiverActivity extends Activity {
|
| @Override
|
| protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
| IntentReceiverRegistry.getInstance().onActivityResult(requestCode, resultCode, data);
|
| - finish();
|
| + if (isTaskRoot()) {
|
| + finishAndRemoveTask();
|
| + } else {
|
| + finish();
|
| + }
|
| }
|
| }
|
|
|