Skip to content

Improve state handling#4

Merged
robbi5 merged 3 commits into
mainfrom
state
Jun 18, 2026
Merged

Improve state handling#4
robbi5 merged 3 commits into
mainfrom
state

Conversation

@robbi5

@robbi5 robbi5 commented May 28, 2026

Copy link
Copy Markdown
Contributor

This PR replaces the running flag with an state enum, so apps using libpretixnfc can detect if nfc is just not running or if its actually disabled (which could be fixed by the user).

Also, now listening to NfcAdapter.ACTION_ADAPTER_STATE_CHANGED broadcasts to enable the reader again after the user turned nfc on / set state to DISABLED if turned off

@robbi5 robbi5 requested a review from pc-coholic May 28, 2026 17:29
@robbi5

robbi5 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Shipped in current pretixSCAN

@robbi5 robbi5 merged commit 9dac99e into main Jun 18, 2026
1 check passed
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