Refactor to use FlowState

Remove the auxiliary DataFlow configuration
This commit is contained in:
Tony Torralba
2022-01-14 12:23:36 +01:00
parent df95317a58
commit 9f616e7cbe
5 changed files with 163 additions and 106 deletions

View File

@@ -98,6 +98,12 @@ public class ImplicitPendingIntentsTest {
ctx.startActivity(fwdIntent); // $hasImplicitPendingIntent
}
{
Intent intent = new Intent();
// Testing the need of going through a PendingIntent creation (flow state)
ctx.startActivity(intent); // Safe
}
{
Intent safeIntent = new Intent(ctx, Activity.class); // Sanitizer
PendingIntent pi = PendingIntent.getActivity(ctx, 0, safeIntent, 0);