Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #3620 - Adds automatic theme onboarding content description (#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekager authored and colintheshots committed Jun 24, 2019
1 parent 1d57e77 commit 03a5cb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -52,6 +52,10 @@ class OnboardingThemePickerViewHolder(private val view: View) : RecyclerView.Vie
radioLightTheme.performClick()
}

val automaticTitle = view.context.getString(R.string.onboarding_theme_automatic_title)
val automaticSummary = view.context.getString(R.string.onboarding_theme_automatic_summary)
view.clickable_region_automatic.contentDescription = "$automaticTitle $automaticSummary"

view.clickable_region_automatic.setOnClickListener {
radioFollowDeviceTheme.performClick()
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/onboarding_theme_picker.xml
Expand Up @@ -60,7 +60,6 @@
app:layout_constraintTop_toBottomOf="@+id/description_text"
app:onboardingKey="@string/pref_key_light_theme" />


<ImageButton
android:id="@+id/theme_light_image"
android:layout_width="wrap_content"
Expand Down Expand Up @@ -144,6 +143,7 @@
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:contentDescription="@string/onboarding_theme_automatic_title"
android:paddingStart="0dp"
android:paddingEnd="8dp"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down

0 comments on commit 03a5cb2

Please sign in to comment.