src/main/java/de/dennisguse/opentracks/ui/intervals/IntervalsFragment.java
protected synchronized void loadIntervals() {
        if (viewModel == null) {
            return;
        }

        viewBinding.intervalRate.setText(isReportSpeed ? getString(R.string.stats_speed) : getString(R.string.stats_pace));
        LiveData<List<IntervalStatistics.Interval>> liveData = viewModel.getIntervalStats(trackId, metricUnits, selectedInterval);
        liveData.observe(getActivity(), intervalList -> adapter.swapData(intervalList, metricUnits, isReportSpeed));
    }
/**
     * Update intervals through {@link IntervalStatisticsModel} view model.
     */
Update intervals through  IntervalStatisticsModel view model.
Update intervals through IntervalStatisticsModel view model .
protected synchronized void loadIntervals() {
        if (viewModel == null) {
            return;
        }
        viewBinding.intervalRate.setText(isReportSpeed ? getString(R.string.stats_speed) : getString(R.string.stats_pace));
        LiveData<List<IntervalStatistics.Interval>> liveData = viewModel.getIntervalStats(trackId, metricUnits, selectedInterval);
        liveData.observe(getActivity(), intervalList -> adapter.swapData(intervalList, metricUnits, isReportSpeed));
    }
protected synchronized void loadIntervals ( ) { if ( viewModel == null ) { return ; } viewBinding . intervalRate . setText ( isReportSpeed ? getString ( R . string . stats_speed ) : getString ( R . string . stats_pace ) ) ; LiveData < List < IntervalStatistics . Interval > > liveData = viewModel . getIntervalStats ( trackId , metricUnits , selectedInterval ) ; liveData . observe ( getActivity ( ) , intervalList -> adapter . swapData ( intervalList , metricUnits , isReportSpeed ) ) ; }
Update intervals through {@link IntervalStatisticsModel} view model.
Update intervals through { @link IntervalStatisticsModel } view model .