1
0
Fork 0

for #10839 added IO coroutine to check onboarding stat from sharedpref (#11338)

changed coroutine scope to fragments lifecycle
master
Sachin 2020-06-08 15:52:10 -07:00 committed by GitHub
parent e4e7cc5108
commit 8fdc28010d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class HomeFragment : Fragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
postponeEnterTransition()
StrictMode.allowThreadDiskReads().resetAfter {
lifecycleScope.launch(IO) {
if (!onboarding.userHasBeenOnboarded()) {
requireComponents.analytics.metrics.track(Event.OpenedAppFirstRun)
}