Skip to content

Commit

Permalink
Fixed #283, #279, Crash when geofence was entered and no location ava…
Browse files Browse the repository at this point in the history
…ilable
  • Loading branch information
Alexander Rust committed Jan 20, 2014
1 parent ecc54f8 commit 0a9448b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="st.alr.mqttitude"
android:versionCode="0409"
android:versionName="0.4.09 " >
android:versionCode="0410"
android:versionName="0.4.10 " >

<uses-feature
android:glEsVersion="0x00020000"
Expand Down
Binary file modified apps/android/apk/mqttitude.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ private void publishGeofenceTransitionEvent(Waypoint w, int transition) {
l.setLatitude(w.getLatitude());
l.setLongitude(w.getLongitude());
l.setAccuracy(w.getRadius());
l.setTime(new Date().getTime());
l.getLocation().setTime(new Date().getTime()/1000);
// l.setTime(new Date().getTime());

LocationMessage r = new LocationMessage(l);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static PendingIntent getPendingIntentForService(Context c, String targetS
i.putExtras(extras);
i.putExtra("srvID", targetServiceId);

return PendingIntent.getService(c, ++intentCounter, i, flags);
return PendingIntent.getService(c, 0, i, flags);

}
}

0 comments on commit 0a9448b

Please sign in to comment.