Interval statistics: listen preferred units change (metric/imperial) and recreate intervals.

This commit is contained in:
Román
2020-08-12 16:20:07 +02:00
committed by Román Martínez
parent cbc803d038
commit a6c3cf1c28
4 changed files with 33 additions and 8 deletions
@@ -38,6 +38,10 @@ public class IntervalStatisticsModel extends AndroidViewModel {
return getIntervalStats(trackId, interval);
}
public void invalidate() {
intervalStats = null;
}
private void loadIntervalStats(long trackId) {
new Thread(() -> {
Context context = getApplication().getApplicationContext();