For #26754 - Avoid showing CFR if the MR onboarding is being displayed

This commit is contained in:
Gabriel Luong 2022-09-01 00:59:00 -04:00 committed by mergify[bot]
parent afa661507b
commit df2780cd01
1 changed files with 9 additions and 7 deletions

View File

@ -217,14 +217,16 @@ class SessionControlView(
override fun onLayoutCompleted(state: RecyclerView.State?) {
super.onLayoutCompleted(state)
JumpBackInCFRDialog(view).showIfNeeded()
if (!context.settings().showHomeOnboardingDialog) {
JumpBackInCFRDialog(view).showIfNeeded()
if (context.settings().showSyncCFR) {
SyncCFRPresenter(
context = context,
recyclerView = view,
).showSyncCFR()
context.settings().showSyncCFR = false
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