Codex/replace miuihyperfocuslyriccontroller with live updates api - #15
Conversation
…r-with-live-updates-api
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 439e6e0ffc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| fun initSetting() { | ||
| runBlocking { | ||
| cookie = DataStoreManager.getStringItem("cookie", "") |
There was a problem hiding this comment.
Load new lyric setting from DataStore on startup
The new adaptOriginalAndroidLyric toggle is saved in updateAdaptOriginalAndroidLyric, but initSetting() never reads it back from DataStoreManager. As a result, after an app restart the setting always resets to false, so users who enabled it will see it disabled again until they toggle it each run. Add a getBooleanItem("adaptOriginalAndroidLyric", false) read alongside the other settings to persist the choice across launches.
Useful? React with 👍 / 👎.
No description provided.