mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-03 01:53:05 +02:00
Statistics recorded fragment shows activity's information (name, description, start datetime).
Re-arrange stats putting the focus on moving stats. Fixes #566.
This commit is contained in:
@@ -161,6 +161,7 @@ public class StatisticsRecordedFragment extends Fragment {
|
||||
sharedPreferenceChangeListener.onSharedPreferenceChanged(sharedPreferences, getString(R.string.stats_rate_key));
|
||||
}
|
||||
|
||||
loadTrackDescription(track);
|
||||
updateUI();
|
||||
updateSensorUI();
|
||||
}
|
||||
@@ -168,6 +169,17 @@ public class StatisticsRecordedFragment extends Fragment {
|
||||
}
|
||||
}
|
||||
|
||||
private void loadTrackDescription(Track track) {
|
||||
if (track == null) {
|
||||
return;
|
||||
}
|
||||
viewBinding.statsNameValue.setText(track.getName());
|
||||
viewBinding.statsDescriptionValue.setText(track.getDescription());
|
||||
if (track.getTrackStatistics() != null) {
|
||||
viewBinding.statsStartDatetimeValue.setText(StringUtils.formatDateTime(getContext(), track.getTrackStatistics().getStartTime()));
|
||||
}
|
||||
}
|
||||
|
||||
private void updateUI() {
|
||||
// Set total distance
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user