Skip to content

Commit

Permalink
Set other onboarding_experiment_background backgrounds in ImageViews
Browse files Browse the repository at this point in the history
  • Loading branch information
bemusementpark committed Aug 12, 2024
1 parent 53e0b0f commit 159106f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3883,8 +3883,6 @@ class BrowserTabFragment :
}
newBrowserTab.newTabLayout.setOnClickListener { daxDialogIntroBubbleCta.dialogTextCta.finishAnimation() }

newBrowserTab.browserBackground.setBackgroundResource(R.drawable.onboarding_experiment_background)

viewModel.onCtaShown()
}

Expand All @@ -3905,8 +3903,6 @@ class BrowserTabFragment :
viewModel.onUserClickCtaOkButton(configuration)
}
}
binding.includeOnboardingDaxDialog.onboardingDaxDialogBackground
.setBackgroundResource(R.drawable.onboarding_experiment_background)
binding.webViewContainer.setOnClickListener { daxDialogIntroBubbleCta.dialogTextCta.finishAnimation() }
viewModel.onCtaShown()
}
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/layout/include_new_browser_tab.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
android:paddingTop="?attr/actionBarSize"
android:foreground="@android:color/transparent">

<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:scaleType="centerCrop"
app:srcCompat="@drawable/onboarding_experiment_background" />

<FrameLayout
android:id="@+id/newTabContainerLayout"
android:layout_width="match_parent"
Expand Down
11 changes: 10 additions & 1 deletion app/src/main/res/layout/include_onboarding_view_dax_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@
android:id="@+id/onboardingDaxDialogBackground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:background="@drawable/onboarding_experiment_background"
android:clipChildren="false">

<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:scaleType="centerCrop"
app:srcCompat="@drawable/onboarding_experiment_background" />

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/logo"
android:layout_width="56dp"
Expand Down

0 comments on commit 159106f

Please sign in to comment.