Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e4f626e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add flag for clock reactive variants" into main

parents 03722fd0 cddf1fa5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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"
+2 −0
Original line number Diff line number Diff line
@@ -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) }

+3 −0
Original line number Diff line number Diff line
@@ -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)