summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
author Mark Renouf <mrenouf@google.com> 2022-03-09 12:51:02 -0500
committer Mark Renouf <mrenouf@google.com> 2022-03-09 16:24:48 -0500
commit41ffe5fe53545467eb47989fd8617505d3543da4 (patch)
treedccfc835621ecd77f3563fb6edb8b3f47e2602bf /java
parent90b62ac16496de554c039e09e507f65a2024c7d3 (diff)
Remove startAsCallerImpl from ChooserActivity
Change-Id: I8dd4e30b18cbddea47357cf7f9aa21792e5c9972
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/intentresolver/ChooserActivity.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/java/src/com/android/intentresolver/ChooserActivity.java b/java/src/com/android/intentresolver/ChooserActivity.java
index d221c491..4c96f7a7 100644
--- a/java/src/com/android/intentresolver/ChooserActivity.java
+++ b/java/src/com/android/intentresolver/ChooserActivity.java
@@ -20,24 +20,23 @@ import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
+import androidx.annotation.Nullable;
+
/**
* Activity for selecting which application ought to handle an ACTION_SEND intent.
*/
public class ChooserActivity extends com.android.internal.app.ChooserActivity {
- private static final String TAG = "ChooserActivity";
@Override
- public boolean startAsCallerImpl(Intent intent, Bundle options, boolean ignoreTargetSecurity,
- int userId) {
-
+ public void startActivityAsCaller(Intent intent, @Nullable Bundle options,
+ boolean ignoreTargetSecurity, int userId) {
// We're dispatching intents that might be coming from legacy apps, so
// (as in com.android.internal.app.ResolverActivity) exempt ourselves from death.
StrictMode.disableDeathOnFileUriExposure();
try {
- startActivityAsCaller(intent, options, ignoreTargetSecurity, userId);
+ super.startActivityAsCaller(intent, options, ignoreTargetSecurity, userId);
} finally {
StrictMode.enableDeathOnFileUriExposure();
}
- return true;
}
}