Skip to content

Commit

Permalink
Merge pull request dolphin-emu#11835 from JosJuice/android-analytics-…
Browse files Browse the repository at this point in the history
…race

Android: Don't show analytics dialog for destroyed activity
  • Loading branch information
t895 authored May 28, 2023
2 parents 55b9794 + 8a78538 commit faa2b28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object Analytics {

@JvmStatic
fun checkAnalyticsInit(activity: FragmentActivity) {
AfterDirectoryInitializationRunner().runWithoutLifecycle {
AfterDirectoryInitializationRunner().runWithLifecycle(activity) {
if (!BooleanSetting.MAIN_ANALYTICS_PERMISSION_ASKED.boolean) {
AnalyticsDialog().show(activity.supportFragmentManager, AnalyticsDialog.TAG)
}
Expand Down

0 comments on commit faa2b28

Please sign in to comment.