summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorAlison Cichowlas <asc@google.com>2018-12-07 09:06:57 -0500
committerAlison Cichowlas <asc@google.com>2018-12-07 15:06:59 -0500
commit7b6f3b60a9cfc19af565ce2e2fc690ca65bc1e51 (patch)
tree4509bedd758a7bc3fc4832c90d51f05b579cbbe7 /core/java
parentf3867a703bdaee7d24e70c7bed41f5ffe2f4999f (diff)
Additional activity in new Chooser flow must also forward Results.
Re-enable new Chooser flow. Bug: 120417119 Test: Attach files in Gmail; ApiDemos.apk Content > Storage > Docs > GET_CONTENT Change-Id: I4dc093e24c7415e10bfae0598038c3eb87029d5b
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/app/ResolverActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/com/android/internal/app/ResolverActivity.java b/core/java/com/android/internal/app/ResolverActivity.java
index 46c6fa42babf..ef5eb6cb5780 100644
--- a/core/java/com/android/internal/app/ResolverActivity.java
+++ b/core/java/com/android/internal/app/ResolverActivity.java
@@ -94,7 +94,7 @@ import java.util.Set;
public class ResolverActivity extends Activity {
// Temporary flag for new chooser delegate behavior.
- boolean mEnableChooserDelegate = false;
+ boolean mEnableChooserDelegate = true;
protected ResolveListAdapter mAdapter;
private boolean mSafeForwardingMode;
@@ -887,6 +887,8 @@ public class ResolverActivity extends Activity {
chooserIntent.putExtra(ActivityTaskManager.EXTRA_IGNORE_TARGET_SECURITY,
ignoreTargetSecurity);
chooserIntent.putExtra(Intent.EXTRA_USER_ID, userId);
+ chooserIntent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT
+ | Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP);
startActivity(chooserIntent);
} catch (RemoteException e) {
Log.e(TAG, e.toString());