mirror of
https://github.com/breezy-weather/breezy-weather.git
synced 2025-10-18 23:43:40 +00:00
Improve background blinking a bit
This commit is contained in:
parent
7b8b9bb174
commit
d0924556f2
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ class MaterialWeatherView(
|
|||
val insets = ViewCompat.getRootWindowInsets(this)
|
||||
val i = insets?.getInsets(WindowInsetsCompat.Type.systemBars() + WindowInsetsCompat.Type.displayCutout())
|
||||
|
||||
// TODO: Arbitrary value
|
||||
mFirstCardMarginTop = ((i?.top ?: 0) + 800) // 0.66
|
||||
// TODO: Arbitrary value. If too high, will blink. See also #2241 for attempt at a more effective fix
|
||||
mFirstCardMarginTop = ((i?.top ?: 0) + 500) // 0.66
|
||||
}
|
||||
|
||||
override fun onLayout(b: Boolean, i: Int, i1: Int, i2: Int, i3: Int) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue