fix end date from history

This commit is contained in:
CiufudeanDani 2022-04-18 13:55:35 +03:00
parent ab0108fab9
commit 7bcec6e81b

View File

@ -168,8 +168,9 @@ public class HistoryActivity extends AppCompatActivity implements OnMapReadyCall
private void setDate() { private void setDate() {
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.DATE, 1);
endDate = calendar.getTime(); endDate = calendar.getTime();
calendar.add(Calendar.DATE, -1); calendar.add(Calendar.DATE, -2);
startDate = calendar.getTime(); startDate = calendar.getTime();
TextView textViewStartDate = findViewById(R.id.textViewStartDate); TextView textViewStartDate = findViewById(R.id.textViewStartDate);
@ -279,6 +280,5 @@ public class HistoryActivity extends AppCompatActivity implements OnMapReadyCall
this.googleMap.getUiSettings().setMapToolbarEnabled(false); this.googleMap.getUiSettings().setMapToolbarEnabled(false);
parentTab.demoPositionsList(); parentTab.demoPositionsList();
// displayButton.performClick();
} }
} }