forked from upstream-mirrors/OpenTracks
Interval statistics: listen preferred units change (metric/imperial) and recreate intervals.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user