Merge pull request #11835 from JosJuice/android-analytics-race
Android: Don't show analytics dialog for destroyed activity
This commit is contained in:
commit
faa2b28e6b
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue