Skip to content

Commit 3fe08b8

Browse files
committed
Check swiping tabs from io
1 parent 590b8cb commit 3fe08b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3187,8 +3187,10 @@ class BrowserTabFragment :
31873187
binding.daxDialogOnboardingCtaContent.layoutTransition = LayoutTransition()
31883188
binding.daxDialogOnboardingCtaContent.layoutTransition.enableTransitionType(LayoutTransition.CHANGING)
31893189

3190-
if (swipingTabsFeature.isEnabled) {
3191-
binding.daxDialogOnboardingCtaContent.layoutTransition.setAnimateParentHierarchy(false)
3190+
lifecycleScope.launch {
3191+
if (withContext(dispatchers.io()) { swipingTabsFeature.isEnabled }) {
3192+
binding.daxDialogOnboardingCtaContent.layoutTransition.setAnimateParentHierarchy(false)
3193+
}
31923194
}
31933195
}
31943196

0 commit comments

Comments
 (0)