mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Android: Don't show analytics dialog for destroyed activity
Should fix one of the reported crashes on Google Play. The issue can happen if you leave the activity during directory initialization.
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user