mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
@@ -13,6 +13,6 @@ if (destinationComponent.getPackageName().equals("safe.package") &&
|
||||
// GOOD: The component that sent the Intent is checked before launching the destination component
|
||||
Intent forwardIntent = (Intent) getIntent().getParcelableExtra("forward_intent");
|
||||
ComponentName originComponent = getCallingActivity();
|
||||
if (originComponent.getPackageName().equals("trusted.package") && originComponent.getClassName("TrustedClass")) {
|
||||
if (originComponent.getPackageName().equals("trusted.package") && originComponent.getClassName().equals("TrustedClass")) {
|
||||
startActivity(forwardIntent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user