Skip to content

Commit

Permalink
4.1.5 Now showing session time in summary view.
Browse files Browse the repository at this point in the history
  • Loading branch information
dliedke committed Aug 17, 2022
1 parent 43f3413 commit ae7392b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Meditate/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. -->
<iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f773f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="4.1.4">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f773f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="4.1.5">
<iq:products>
<iq:product id="approachs62"/>
<iq:product id="d2air"/>
Expand Down
9 changes: 8 additions & 1 deletion Meditate/source/summaryScreen/HeartRateGraphView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class HeartRateGraphView extends ScreenPicker.ScreenPickerView {

// Draw AVG HR text
dc.drawText(centerX,
centerY + centerY / 2 + 20,
centerY + centerY / 2 + 3,
Gfx.FONT_SYSTEM_TINY,
Ui.loadResource(Rez.Strings.SummaryRespirationAvg) + me.summaryModel.avgHr.toString(),
Graphics.TEXT_JUSTIFY_CENTER|Graphics.TEXT_JUSTIFY_VCENTER);
Expand All @@ -81,6 +81,13 @@ class HeartRateGraphView extends ScreenPicker.ScreenPickerView {
Ui.loadResource(Rez.Strings.SummaryRespirationMax) + me.summaryModel.maxHr.toString(),
Graphics.TEXT_JUSTIFY_CENTER|Graphics.TEXT_JUSTIFY_VCENTER);

// Draw Time text
dc.drawText(centerX,
centerY + centerY / 1.5 + 13,
Gfx.FONT_SYSTEM_TINY,
TimeFormatter.format(me.summaryModel.elapsedTime),
Graphics.TEXT_JUSTIFY_CENTER|Graphics.TEXT_JUSTIFY_VCENTER);

// Retrieve saved HR history for this activity
var heartRateHistory = me.summaryModel.hrHistory;

Expand Down

0 comments on commit ae7392b

Please sign in to comment.