Skip to content

Inquiry Regarding 'ShouldQueueOnMainThread' and GATT Status 133 on Samsung Galaxy S20 and above #745

Answered by axa88
92-Theo asked this question in Q&A
Discussion options

You must be logged in to vote
1. Regarding 'ShouldQueueOnMainThread': Could you please explain the rationale behind adding the 'ShouldQueueOnMainThread' field in the BleImplementation class? I'm particularly interested in understanding the problems it was designed to solve or any performance improvements it offers.

late to the party but, while Ive not read this libraries source code but im pretty sure i know what you were inquiring about.
It was either a conscious design decision or an unconscious mistake, but Android needs to have certain processes happen on the Main Ui Thread (as well as made synchronously)
This field I would imagine is just a easy way to turn this functionality on or off if Android ever figures …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 92-Theo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants