Skip to content

Commit

Permalink
Merge pull request #10 from sdglhm/master
Browse files Browse the repository at this point in the history
Fix location entry delete issue fixes #1
  • Loading branch information
Batzee authored Oct 2, 2017
2 parents 13623f5 + 76c881c commit e01471d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ private void addmarker(GeoLocation geo) {

private void deleteMarkersFromServer(){
//Query applesQuery = mDatabase.limitToFirst(100);
Query applesQuery = mDatabase.orderByKey();
//Query applesQuery = mDatabase.orderByKey();

Date date = new Date(System.currentTimeMillis() - (900000)); //900000 is 15 minutes in ms
Query applesQuery = mDatabase.endAt(date);

applesQuery.addListenerForSingleValueEvent(new ValueEventListener() {
@Override
Expand Down

0 comments on commit e01471d

Please sign in to comment.