mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-09 04:43:06 +02:00
Cleanup: use ActivityType instead of passing it's id around as String.
Part of #1608.
This commit is contained in:
@@ -151,7 +151,7 @@ public class IntervalsFragment extends Fragment {
|
||||
ContentProviderUtils contentProviderUtils = new ContentProviderUtils(getContext());
|
||||
Track track = contentProviderUtils.getTrack(trackId);
|
||||
if (track != null) {
|
||||
isReportSpeed = PreferencesUtils.isReportSpeed(track.getActivityType());
|
||||
isReportSpeed = PreferencesUtils.isReportSpeed(track.getActivityTypeLocalized());
|
||||
}
|
||||
|
||||
viewModel = new ViewModelProvider(getActivity()).get(IntervalStatisticsModel.class);
|
||||
|
||||
Reference in New Issue
Block a user