Dynamic Colors doesn't update
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 63/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- mobile-dev
Rechercherichtung
Start by reading latin/common/Colors.kt and the KeyboardSwitcher.updateKeyboardThemeAndContextThemeWrapper() path called from onStartInputView; compare how the settings screen and keyboard obtain their contexts and check colors. Reproduce the reported palette change, then verify that opening the keyboard picks up the new colors without force-stopping LeanType.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
As said by claude
Describe the bug
When the system Material You palette changes while LeanType is running, the keyboard with the Dynamic colors theme keeps showing the old colors. LeanType's settings screen updates to the new palette right away, but the keyboard doesn't update until LeanType is force-stopped.
To Reproduce
- Select the Dynamic colors keyboard theme.
- Change the system Material You palette. In my case, ColorBlendr (Shizuku mode) re-applies colors each time Paperize sets a new static wallpaper. Changing colors manually in ColorBlendr gives the same result.
- Open LeanType settings: the new colors are shown correctly.
- Open the keyboard in any text field: it still shows the previous palette.
- Force-stop LeanType and open the keyboard again: the new colors appear.
Expected behavior
The keyboard picks up the new system palette the next time it's shown, like the settings screen does.
Screenshots
N/A
App version & Flavor
[version, e.g. v4.2.x] / standard
Device Info
- Model: Samsung Galaxy Z Fold 6
- OS version: [Android version] / One UI [version]
Additional context (possible cause)
From reading the source, this might be the cause (unconfirmed):
DynamicColors(latin/common/Colors.kt) readssystem_accent*/system_neutral*once in its constructor.KeyboardSwitcher.updateKeyboardThemeAndContextThemeWrapper()checksmColors.haveColorsChanged(context)ononStartInputView, but the context passed in isdisplayContext, which is created once inonInitializeInterface()and reused.- If that long-lived context keeps returning the old
system_*values after the theme overlay changes,haveColorsChanged()returns false and the theme never reloads. The settings activity gets a fresh context, so it isn't affected.
Workaround: force-stopping LeanType loads the current colors.
- Vorherrschende Sprache
- Kotlin
- Sterne
- 1k
- Forks
- 59
- Ø Merge
- 13 Std. 21 Min.
- Gemergte PRs (30 T.)
- 48
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus LeanBitLab/LeanType
-
Voice input fails in browser address bars due to incorrect password field detection (v4.2.9, follow-up to #516)Evtl. vergeben @LeanBitLab hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
LeanBitLab/LeanType#713 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
LeanBitLab/LeanType#423 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 54/100
LeanBitLab/LeanType#717 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Crush ReportEvtl. vergeben @LeanBitLab hat das heute übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 20/100
LeanBitLab/LeanType#715 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Text Expander/cursor-handling bugEvtl. vergeben @LeanBitLab hat das vor 3 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
LeanBitLab/LeanType#703 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in LeanBitLab/LeanType
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
getdictus/dictus-android#187 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation follow-up
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
follow-up
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 83/100
yschimke/meshcore-mobile#586 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Kotlin/kotlinx-io#529 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
mcnaveen/health-connect-webhook#110 ·
Maintainer antworten meist innerhalb von 1 Tag