-
Notifications
You must be signed in to change notification settings - Fork 598
[Android] platform code cleanup #1219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| private void waitIfBonding() { | ||
| int counter = 0; | ||
| if (mBondingDevices.isEmpty() == false) { | ||
| while (mBondingDevices.isEmpty() == false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chipweinberger this seem to be a bug. I assumed here should be a loop
| for (BluetoothGatt gatt : mConnectedDevices.values()) { | ||
|
|
||
| if (func == "adapterTurnOff") { | ||
| if ("adapterTurnOff".equals(func)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chipweinberger seem to be another string comparison bug
|
if you feel confident in it, feel free to merge and release it |
I'll try to do some more testing before making a release. @chipweinberger did you see my notes in the |
|
yes it looks right. a little surprising that we've gone so long with it "broken" it's a "best practice" to not do anything else while bonding |
# Conflicts: # packages/flutter_blue_plus_android/android/src/main/java/com/lib/flutter_blue_plus/FlutterBluePlusPlugin.java
|
Just checking in on this PR, my team is experiencing bonding latency and are curious as to whether this has shown improvement in bonding performance? |
|
no it will have no effect |
|
we should probably just remove the code works as is. we shouldn't change functionality thats working. |
a86d5ad to
5a236d2
Compare
|
just closing to tidy things up given the merge conflicts, you'd probably want to start fresh. |
@chipweinberger I could have still merged the conflicts... BTW, the last release missing the change logs and it is also fail to build on Android. |
|
ok. reopened. please continue work on it! |
4d955a1 to
67cffb0
Compare
9b36f39 to
a1e944c
Compare
510ac3c to
52aa7b3
Compare
A relatively large change, but mostly about tidying Android platform code:
new HashMap()withMap.of()- should be more efficientIt may use some additional testing. These changes touch some functionality I don't use...