Merge pull request #17274 from asgerf/java/implicit-pending-intents-implicit-read

Java: Reveal false negative in test
This commit is contained in:
Asger F
2024-08-22 11:00:07 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
failures
testFailures
failures

View File

@@ -32,8 +32,8 @@ public class ImplicitPendingIntentsTest {
PendingIntent pi = PendingIntent.getActivity(ctx, 0, baseIntent, 0);
Intent fwdIntent = new Intent();
fwdIntent.putExtra("fwdIntent", pi);
ctx.startActivities(new Intent[] {fwdIntent}); // $ MISSING: hasImplicitPendingIntent
ctx.startActivity(fwdIntent); // $hasImplicitPendingIntent
ctx.startActivities(new Intent[] {fwdIntent}); // $hasImplicitPendingIntent
ctx.startService(fwdIntent); // Safe
ctx.sendBroadcast(fwdIntent); // $hasImplicitPendingIntent