-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fix location provider #912
Conversation
rebuilt and confirm that it fixes the issue, no crash APK for testing: de.grobox.liberario_124.apk.ZIP (remove |
Thank you @Altonss for the fix and @licaon-kter for providing an APK. Transportr does not crash upon start with this build, but also no longer is able to get a fix on my positon like in previous releases. Is there no way to get that function back? I do not depend on this function as I can use any navigation app to get more information on my surroundings on an unknown area, but it would be a nice to have feature since it was successfully included before. Thanks anyway for the immediate bug fix. |
@Kelvino9 so you say that if you lock GPS location in GPSTest app, and then you open this app, it won't get your location? Works fine for me here. |
@licaon-kter I deleted everything, rebooted and tested again. It seems to work as intended after waiting for a few moments. I did install GPSTest this time, because you mentioned it above. It worked. I then uninstalled GPSTest and reinitialized Transportr and it again worked as intended. I hope there isn't any data left from GPSTest and Transportr will continue to work without the need of running GPSTest before. Was I just impatient when trying to get a fix on my position in Trasnportr? I didn't got a warning from Transportr earlier (before I used GPSTest) that it couldn't retrieve my position yet, but it notified me in later tests which actually led me to wait a bit. |
GPS takes time to get a lock, I guess this app needs a bigger icon for "looking for location" :) |
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.
Thanks @Altonss for the quick investigation and fix! I've looked into the PositionController
again and also found the for-loop in onInactive()
to be useless. Maybe you can remove that too in this PR.
app/src/main/java/de/grobox/transportr/map/PositionController.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: ialokim <ialokim@mailbox.org>
Just applied the changes you suggested @ialokim, and everything works fine for me. |
In Organics Maps you'll be notified to change location permission manually once you denied location permission. |
Good remark, let's follow up on this in #916 . |
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.
Thanks!
This is a quick fix that should close #911.
@Kelvino9 @licaon-kter could you try it out?