Skip to content

Conversation

yqx1110
Copy link

@yqx1110 yqx1110 commented Aug 21, 2025

fixes #421

The broadcast receiver should not be unregistered when the App becomes invisible since it still needs to listen to Intents.ACTION_CLASH_STARTED
Intents.ACTION_CLASH_STOPPED
to correctly update clashRunning state.
However, Broadcasts.registered was never updated to true so the unregister function never acctually took effect.

The problem is that when the App is started without ui, it never became visible, so the Broadcast receiever wasn't registered at all.

…o ui, e.g. from settings tile or external control
@yqx1110
Copy link
Author

yqx1110 commented Aug 21, 2025

I'm not sure when to call Broadcasts.unregister() so I left it uncalled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant