Loading packages/SystemUI/aconfig/systemui.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -413,6 +413,13 @@ flag { bug: "301502635" } flag { name: "clock_reactive_variants" namespace: "systemui" description: "Add reactive variant fonts to some clocks" bug: "343495953" } flag { name: "fast_unlock_transition" namespace: "systemui" Loading packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt +2 −0 Original line number Diff line number Diff line Loading @@ -239,6 +239,8 @@ class DefaultClockController( } inner class DefaultClockEvents : ClockEvents { override var isReactiveTouchInteractionEnabled: Boolean = false override fun onTimeFormatChanged(is24Hr: Boolean) = clocks.forEach { it.refreshFormat(is24Hr) } Loading packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/ClockProviderPlugin.kt +3 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,9 @@ class DefaultClockFaceLayout(val view: View) : ClockFaceLayout { /** Events that should call when various rendering parameters change */ interface ClockEvents { /** Set to enable or disable swipe interaction */ var isReactiveTouchInteractionEnabled: Boolean /** Call whenever timezone changes */ fun onTimeZoneChanged(timeZone: TimeZone) Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -413,6 +413,13 @@ flag { bug: "301502635" } flag { name: "clock_reactive_variants" namespace: "systemui" description: "Add reactive variant fonts to some clocks" bug: "343495953" } flag { name: "fast_unlock_transition" namespace: "systemui" Loading
packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt +2 −0 Original line number Diff line number Diff line Loading @@ -239,6 +239,8 @@ class DefaultClockController( } inner class DefaultClockEvents : ClockEvents { override var isReactiveTouchInteractionEnabled: Boolean = false override fun onTimeFormatChanged(is24Hr: Boolean) = clocks.forEach { it.refreshFormat(is24Hr) } Loading
packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/ClockProviderPlugin.kt +3 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,9 @@ class DefaultClockFaceLayout(val view: View) : ClockFaceLayout { /** Events that should call when various rendering parameters change */ interface ClockEvents { /** Set to enable or disable swipe interaction */ var isReactiveTouchInteractionEnabled: Boolean /** Call whenever timezone changes */ fun onTimeZoneChanged(timeZone: TimeZone) Loading