-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Added Waypoints widget #381
Conversation
Thank you for your contribution and the great documentation. |
One thing that occured to me though: You're loading the waypoints on the main thread when the app starts. In the Andorid 7 branch I moved the service initialization to a backround thread to increase the app startup speed. I think we should do this here too. It's probably an easy fix by moving the loading code to a runnable. |
Sure, will change the waypoint loading and add the commit to this pull request. |
When you say waypoint loading, do you mean requestWaypoints()? Or is it updateWidget()? |
@binarybucks do I need to rebase and resolve for this PR? |
Refactored launcher activity for setup Refactored wizzard activity Added Play Services checks general fixes Improved map follow behavior (owntracks#352), fixed crt import for some content providers (owntracks#339), fixed missing actionbar on lower APIs (owntracks#350), fixed Google Play services check on startup Fixed region action mode colors and behavior Fixed bottom sheet Gradle fixes (owntracks#360) * Fix error running ./gradlew from command-line. These changes were generated automatically by running: .../android-studio/gradle/gradle-2.10/bin/gradle wrapper Previously. gradle-wrapper.jar was missing from the repo, so running "./gradlew" would produce an error: Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain * Use secure connection to access gradle repositories (HTTPS). ignore backups new versions sample code to get a widget created got location into widget textview refactored widget logic into ServiceWidget Store list of waypoints per contact and crude distance computation logs Added StackView and moving to adaptor based updates basic setup for the StackView in widget restructuring progress rendering first cut working version of widget added better resources and widget preview widget UI tweaks cleaned up log prints Tweaked widget UI to show geo-coded location Adding support for incremental waypoint updates Setting the right topic for remote command requesting other user's waypoints
I am having a really tough time trying to rebase my changes on top of |
50a4461
to
5d10c6c
Compare
@@ -14,7 +14,7 @@ | |||
import com.google.android.gms.gcm.OneoffTask; | |||
import com.google.android.gms.gcm.Task; | |||
|
|||
import org.antlr.v4.runtime.misc.NotNull; |
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.
This package was flagged as non-existing in my build, even with just the baseline upstream/master repo without my changes.
Finally managed to rebase properly (I hope). @binarybucks, is it possible to get some feedback on the changes? There is a build issue with antlr that I have noted in the line comments. |
@binarybucks is there any feedback on this PR? |
I am creating a new branch in my repo to rebase changes, get it building and running. Will open a new PR with the latest changes. Closing this PR. |
Owntracks Waypoint widget is an Android home-screen widget. It uses 2 pieces of information from each user who has shared his/her location:
The widget compares the location with all possible pairs of waypoints and (possibly) comes up with a pair that bounds the current location best. The waypoints from this pair are shown on the ends of a linear scale and the current location is placed on the scale based on distance from each end.
More details at: http://narenma.net/2016/07/30/owntracks-waypoints-widget/
I will try to walk-through the code changes file-by-file (most critical first):
Widget
item underNotifications
Please let me know if any more details are required.
Thanks!
Narendra