Bangle.js: Fix location listener not being cleaned up when waiting for reconnect #3132
No reviewers
Labels
No Label
device mi band 7
activity post processing
activity/health
Android 12
Android 13
android integrations
architecture
Bangle.js
bug
changes requested
charts
details not provided
developer documentation
device amazfit band 5
device amazfit bip
device amazfit cor
device Casio
device fossil
device garmin
device gtr 2e
device gts 2 mini
device h30
device hplus
device huami
device Huawei
device liveview
device mi band
device mi band 2
device mi band 3
device mi band 4
device mi band 5
device mi band 6
device no.1 f1
device pace
device pebble
device pebble 2
device pinetime infinitime
device request
device sony
device support
device watch 9
device xiaomi
discussion
documentation
duplicate
enhancement
feature request
Gadgetbridge
good first issue
help wanted
i am developing my own app can you help
icebox
intent api
internationalisation
invalid
needs work
network companion app
new device
no feedback
not a bug
notifications
one of the 1000 issues about disconnection
pairing/connecting
potentially fixed / confirm and close
question
research
security
seems abandoned
Solved, waiting for F-Droid release
suggest to close
task
user interface / UX
wear os
weather
wontfix
Zepp OS
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Freeyourgadget/Gadgetbridge#3132
Loading…
Reference in New Issue
No description provided.
Delete Branch "halemmerich/Gadgetbridge:fixreconnect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently a loss in BT connectivity while using the phones GPS for the Bangle causes the GBLocationManager not being stopped. This causes GadgetBridge show the Bangle as connected but no communication is possible until a manual reconnect. This pull request fixes that by cleaning up the location manager while handling
GBDevice.ACTION_DEVICE_CHANGED
when the state isGBDevice.State.WAITING_FOR_RECONNECT
.@ -8,3 +8,3 @@
android:title="Use phone gps data" />
<EditTextPreference
android:defaultValue="10000"
android:defaultValue="1000"
Unintended change? The default in BangleJSDeviceSupport is 10000.
Actually intended change to make the interval the same as Bangle internal GPS. Did not see the value exists in both the resource file and code.
77f4f35a8d
tofa3b497718
Would it be possible to get this merged? It looks good to me...