fix: sync qs tile code between ims and volte#431
Open
yhkee0404 wants to merge 1 commit intokyujin-cho:mainfrom
Open
fix: sync qs tile code between ims and volte#431yhkee0404 wants to merge 1 commit intokyujin-cho:mainfrom
yhkee0404 wants to merge 1 commit intokyujin-cho:mainfrom
Conversation
yhkee0404
commented
Dec 13, 2025
Comment on lines
-62
to
-73
| override fun onStartListening() { | ||
| super.onStartListening() | ||
| private fun refreshStatus(volteEnabled: Boolean?) { | ||
| qsTile.state = | ||
| when (this.volteEnabled) { | ||
| when (volteEnabled) { | ||
| true -> Tile.STATE_ACTIVE | ||
| false -> Tile.STATE_INACTIVE | ||
| null -> Tile.STATE_UNAVAILABLE | ||
| } | ||
| if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { | ||
| qsTile.subtitle = | ||
| getString( | ||
| when (this.volteEnabled) { |
Contributor
Author
There was a problem hiding this comment.
Isn't here a race condition when the second read value of volteEnabled may get different from the first one and become a non-repeatable read? On the contrary, the similar updates from volteEnabled inside toggleVoLTEStatus or those from imsActivated inside IMSStatusQSTileService.refreshStatus have no bugs like this one.
yhkee0404
commented
Dec 20, 2025
Contributor
Author
There was a problem hiding this comment.
It seems we should catch IllegalStateException thrown from Shizuku according to its README:
But why do you catch IllegalStateException for moder.isIMSRegistered or moder.isVoLteConfigEnabled?:
c716107 to
2007122
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pixel-volte-patch/app/src/main/java/dev/bluehouse/enablevolte/IMSStatusQSTileService.kt
Lines 34 to 37 in 240d0b2
pixel-volte-patch/app/src/main/java/dev/bluehouse/enablevolte/VoLTEConfigToggleQSTileService.kt
Lines 40 to 43 in 240d0b2
You can download and test the built apk here but need to uninstall the previous release if any: https://github.com/yhkee0404/pixel-volte-patch/releases/tag/1.3.1_PR_426_430_431_432