Skip to content

Commit

Permalink
Limiting Map to last 24hrs, making that explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
pgmccann committed Jun 14, 2018
1 parent 3066793 commit 04e137f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ private void getPoints() {
@Override
public void run() {
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, -1 * (cal.get(Calendar.DAY_OF_WEEK) - 1));
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
cal.add(Calendar.DATE, -1);
points = db.catchDao().getLocationsSince(cal.getTime());
}
};
Expand Down
2 changes: 1 addition & 1 deletion catch/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@

<!-- Map -->

<string name="title_activity_map">Map</string>
<string name="title_activity_map">Map (last 24hrs)</string>

<!-- Location Tracking -->

Expand Down

0 comments on commit 04e137f

Please sign in to comment.