[fenix] For https://github.com/mozilla-mobile/fenix/issues/26754 - Avoid showing CFR if the MR onboarding is being displayed

pull/600/head
Gabriel Luong 2 years ago committed by mergify[bot]
parent 96b591b0f4
commit a5e3c1ab73

@ -217,14 +217,16 @@ class SessionControlView(
override fun onLayoutCompleted(state: RecyclerView.State?) {
super.onLayoutCompleted(state)
JumpBackInCFRDialog(view).showIfNeeded()
if (context.settings().showSyncCFR) {
SyncCFRPresenter(
context = context,
recyclerView = view,
).showSyncCFR()
context.settings().showSyncCFR = false
if (!context.settings().showHomeOnboardingDialog) {
JumpBackInCFRDialog(view).showIfNeeded()
if (context.settings().showSyncCFR) {
SyncCFRPresenter(
context = context,
recyclerView = view,
).showSyncCFR()
context.settings().showSyncCFR = false
}
}
// We want some parts of the home screen UI to be rendered first if they are

Loading…
Cancel
Save