[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?) { override fun onLayoutCompleted(state: RecyclerView.State?) {
super.onLayoutCompleted(state) super.onLayoutCompleted(state)
JumpBackInCFRDialog(view).showIfNeeded() if (!context.settings().showHomeOnboardingDialog) {
JumpBackInCFRDialog(view).showIfNeeded()
if (context.settings().showSyncCFR) {
SyncCFRPresenter( if (context.settings().showSyncCFR) {
context = context, SyncCFRPresenter(
recyclerView = view, context = context,
).showSyncCFR() recyclerView = view,
context.settings().showSyncCFR = false ).showSyncCFR()
context.settings().showSyncCFR = false
}
} }
// We want some parts of the home screen UI to be rendered first if they are // We want some parts of the home screen UI to be rendered first if they are

Loading…
Cancel
Save