Dynamic Colors doesn't update
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 63/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- mobile-dev
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Kotlin
- Étoiles
- 1k
- Forks
- 59
- Merge moyen
- 13 h 21 min
- PR mergées (30 j)
- 48
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de LeanBitLab/LeanType
-
Voice input fails in browser address bars due to incorrect password field detection (v4.2.9, follow-up to #516)Peut-être pris @LeanBitLab l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
LeanBitLab/LeanType#713 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
LeanBitLab/LeanType#423 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 54/100
LeanBitLab/LeanType#717 ·
Les mainteneurs répondent en général sous 1 jour
-
Crush ReportPeut-être pris @LeanBitLab l’a pris aujourd’hui. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 20/100
LeanBitLab/LeanType#715 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Text Expander/cursor-handling bugPeut-être pris @LeanBitLab l’a pris il y a 3 jours. Ouvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 62/100
LeanBitLab/LeanType#703 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de LeanBitLab/LeanType
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
mcnaveen/health-connect-webhook#110 ·
Les mainteneurs répondent en général sous 1 jour
-
Delete all aboveOuverteenhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
mjaakko/NeoStumbler#1307 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
No Wallpaper: Black and white theme changes makes fonts look weird on Home screen and App listOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
tanujnotes/Olauncher#770 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
-
[Submission] PayPalOuvertesubmit-adaption submit-adaption-pre
Difficulté 1/5 Moins d'une heure Accessibilité débutants 76/100
BetterAndroid/android-notification-icon-project#795 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour