[Banglejs] Bug fix to use correct GPS data provider #3007
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#3007
Loading…
Reference in New Issue
No description provided.
Delete Branch "LukasEdl/Gadgetbridge:bug/banglejs-gps-fix-wrong-provider"
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?
Hi everyone,
the current implementaion of the class PhoneNetworkLocationProvider uses the GPS_PROVIDER to retrieve the gps position from the phone. This however should be the NETWORK_PROVIDER, since the GPS_PROVIDER dose not provide the gps data based on the current network.
Therefore i replaced the GPS_PROVIDER with the NETWORK_PROVIDER so that the network gps data can be used.
@ -60,3 +60,3 @@
locationManager.removeUpdates(getLocationListener());
locationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER,
LocationManager.NETWORK_PROVIDER,
I think we should change it in line 69 too, right?
@LukasEdl thanks! What about @joserebelo's comment?
i added the changes, but i think i did the rebase wrong (i followed the steps here), since there are all the changes between the last time i updated my branch and now. Should i recreate the PR?
@LukasEdl Not sure what you may have done wrong, but you can still fix it in this PR - it's (almost) always possible fix these things in git :)
You just need to rebase your branch on top of master. Off of the top of my head:
In your branch, you can try to
git rebase -i upstream/master
. It should open an editor, so you can pick what commits to apply. You want to just leave your 2 commits (the messages here don't matter, only the hashes):Here, we are:
After this, you should be able to
git push --force
, and it will end up with a single commit (you can checkgit log
as well).da5eeb312a
to9ef0e6044c