Skip to content

Commit

Permalink
determine whether to jump
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 committed Sep 12, 2024
1 parent a42f007 commit acc7e25
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ class GoogleHelpRedirectActivity : AppCompatActivity() {
Log.d(TAG, "requestHelpLink answerUrl: $answerUrl")
val url = answerUrl ?: googleHelp?.uri?.toString() ?: inProductHelp?.googleHelp?.uri?.toString() ?: return@launchWhenCreated finish()
Log.d(TAG, "Open $url for $callingPackage in Browser")
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url)))
val targetIntent = Intent(Intent.ACTION_VIEW, Uri.parse(url))

Check failure on line 64 in play-services-core/src/main/kotlin/org/microg/gms/googlehelp/ui/GoogleHelpRedirectActivity.kt

View workflow job for this annotation

GitHub Actions / Gradle build

The intent action android.intent.action.VIEW (used to start an activity) matches the intent filter of a non-exported component org.microg.gms.ui.MainSettingsActivity from a manifest. If you are trying to invoke this specific component via the action then you should make the intent explicit by calling Intent.set{Component,Class,ClassName}. [UnsafeImplicitIntentLaunch]

Check failure on line 64 in play-services-core/src/main/kotlin/org/microg/gms/googlehelp/ui/GoogleHelpRedirectActivity.kt

View workflow job for this annotation

GitHub Actions / Gradle build

The intent action android.intent.action.VIEW (used to start an activity) matches the intent filter of a non-exported component org.microg.gms.ui.MainSettingsActivity from a manifest. If you are trying to invoke this specific component via the action then you should make the intent explicit by calling Intent.set{Component,Class,ClassName}. [UnsafeImplicitIntentLaunch]
val resolveInfoList = packageManager.queryIntentActivities(targetIntent, 0)
Log.d(TAG, "resolveInfoList: $resolveInfoList")
if (resolveInfoList.isNotEmpty()) {
startActivity(targetIntent)
}
finish()
}
}
Expand Down

0 comments on commit acc7e25

Please sign in to comment.