summaryrefslogtreecommitdiff
path: root/src/com/android/customization/picker/clock/ui/view
diff options
context:
space:
mode:
authorGeorge Lin <giolin@google.com>2023-02-13 21:36:57 +0000
committerGeorge Lin <giolin@google.com>2023-02-14 02:04:53 +0000
commita15ab7f8a8d87f4cbd3aed3eb92ae7e9e4cc9b44 (patch)
treeb8f966877dbeeba1ca6efbbeb3b41af3785f8774 /src/com/android/customization/picker/clock/ui/view
parent0fefd5e5ec08deff6f81d9bce30680f2d531d0f4 (diff)
downloadThemePicker-a15ab7f8a8d87f4cbd3aed3eb92ae7e9e4cc9b44.tar.gz
[WPPG] Get and set clock size in settings
Get and set the clock size in the settings. Test: Manually test that changing the clock size corresponds to the lockscreen clock size change Bug: 262924055 Change-Id: I3e4243207e215c0148c6c6db1880f15f95aa7982
Diffstat (limited to 'src/com/android/customization/picker/clock/ui/view')
-rw-r--r--src/com/android/customization/picker/clock/ui/view/ClockSizeRadioButtonGroup.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/customization/picker/clock/ui/view/ClockSizeRadioButtonGroup.kt b/src/com/android/customization/picker/clock/ui/view/ClockSizeRadioButtonGroup.kt
index fcf89049..909491a3 100644
--- a/src/com/android/customization/picker/clock/ui/view/ClockSizeRadioButtonGroup.kt
+++ b/src/com/android/customization/picker/clock/ui/view/ClockSizeRadioButtonGroup.kt
@@ -35,7 +35,7 @@ class ClockSizeRadioButtonGroup(
}
val radioButtonDynamic: RadioButton
- val radioButtonLarge: RadioButton
+ val radioButtonSmall: RadioButton
var onRadioButtonClickListener: OnRadioButtonClickListener? = null
init {
@@ -43,8 +43,8 @@ class ClockSizeRadioButtonGroup(
radioButtonDynamic = requireViewById(R.id.radio_button_dynamic)
val buttonDynamic = requireViewById<View>(R.id.button_container_dynamic)
buttonDynamic.setOnClickListener { onRadioButtonClickListener?.onClick(ClockSize.DYNAMIC) }
- radioButtonLarge = requireViewById(R.id.radio_button_large)
- val buttonLarge = requireViewById<View>(R.id.button_container_large)
- buttonLarge.setOnClickListener { onRadioButtonClickListener?.onClick(ClockSize.LARGE) }
+ radioButtonSmall = requireViewById(R.id.radio_button_large)
+ val buttonLarge = requireViewById<View>(R.id.button_container_small)
+ buttonLarge.setOnClickListener { onRadioButtonClickListener?.onClick(ClockSize.SMALL) }
}
}