Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Updated Integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishreddy2411 authored Nov 27, 2023
1 parent d25b6dc commit 92952c9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import de.dennisguse.opentracks.fragments.ChooseActivityTypeDialogFragment;
import de.dennisguse.opentracks.services.TrackRecordingServiceConnection;
import de.dennisguse.opentracks.settings.PreferencesUtils;
import de.dennisguse.opentracks.stats.SensorStatistics;
import de.dennisguse.opentracks.ui.aggregatedStatistics.ConfirmDeleteDialogFragment;
import de.dennisguse.opentracks.util.ExportUtils;
import de.dennisguse.opentracks.util.IntentUtils;
Expand Down Expand Up @@ -46,9 +47,12 @@ protected void onCreate(Bundle savedInstanceState) {

ContentProviderUtils contentProviderUtils = new ContentProviderUtils(this);
Track track = contentProviderUtils.getTrack(trackId);
try {
try {
SensorStatistics sensorStatistics = contentProviderUtils.getSensorStats(trackId);
float maxHr = sensorStatistics.getMaxHeartRate().getBPM();
if(sensorStatistics!=null)
{
float maxHr = sensorStatistics.getMaxHeartRate().getBPM();
}
}catch (Exception e){}

viewBinding.trackEditName.setText(track.getName());
Expand Down

0 comments on commit 92952c9

Please sign in to comment.