Merge "Do not listen to clock change if should hide clock" into udc-dev
This commit is contained in:
@@ -124,7 +124,9 @@ constructor(
|
|||||||
|
|
||||||
setUpUdfps(rootView)
|
setUpUdfps(rootView)
|
||||||
|
|
||||||
|
if (!shouldHideClock) {
|
||||||
setUpClock(rootView)
|
setUpClock(rootView)
|
||||||
|
}
|
||||||
|
|
||||||
rootView.measure(
|
rootView.measure(
|
||||||
View.MeasureSpec.makeMeasureSpec(
|
View.MeasureSpec.makeMeasureSpec(
|
||||||
@@ -352,7 +354,7 @@ constructor(
|
|||||||
clockController.clock = clock
|
clockController.clock = clock
|
||||||
|
|
||||||
colorOverride?.let { clock.events.onSeedColorChanged(it) }
|
colorOverride?.let { clock.events.onSeedColorChanged(it) }
|
||||||
if (!shouldHideClock) {
|
|
||||||
clock.largeClock.events.onTargetRegionChanged(
|
clock.largeClock.events.onTargetRegionChanged(
|
||||||
KeyguardClockSwitch.getLargeClockRegion(parentView)
|
KeyguardClockSwitch.getLargeClockRegion(parentView)
|
||||||
)
|
)
|
||||||
@@ -366,14 +368,9 @@ constructor(
|
|||||||
parentView.addView(this)
|
parentView.addView(this)
|
||||||
visibility = View.VISIBLE
|
visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
clockView?.visibility = View.GONE
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hide smart space if the clock has weather display; otherwise show it
|
// Hide smart space if the clock has weather display; otherwise show it
|
||||||
val hasCustomWeatherDataDisplay =
|
hideSmartspace(clock.largeClock.config.hasCustomWeatherDataDisplay)
|
||||||
clock.largeClock.config.hasCustomWeatherDataDisplay == true
|
|
||||||
hideSmartspace(hasCustomWeatherDataDisplay)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
Reference in New Issue
Block a user