Skip to content

Commit

Permalink
Hiding HR/HRV metrics when pausing session.
Browse files Browse the repository at this point in the history
  • Loading branch information
dliedke committed Jul 18, 2022
1 parent 4b85261 commit 5bbc773
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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="57843a03841b4410aff4e4c427c42caf" launcherIcon="@Drawables.launcherIcon" minSdkVersion="1.4.0" name="@Strings.AppName" type="watch-app" version="2.6.0">
<iq:application entry="MeditateApp" id="57843a03841b4410aff4e4c427c42caf" launcherIcon="@Drawables.launcherIcon" minSdkVersion="1.4.0" name="@Strings.AppName" type="watch-app" version="2.6.1">
<iq:products>
<iq:product id="fr235"/>
</iq:products>
Expand Down
6 changes: 4 additions & 2 deletions Meditate/source/activity/MeditateView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ class MeditateView extends Ui.View {
}

var timeText = "Time: " + TimeFormatter.format(me.mMeditateModel.elapsedTime);
var currentHr = me.mMeditateModel.currentHr;

// Check if activity is paused, render the [Paused] text
// Check if activity is paused, render the [Paused] text and hide HR metrics
if (!me.mMeditateModel.isTimerRunning) {
timeText = Ui.loadResource(Rez.Strings.meditateActivityPaused);
currentHr = null;
}

me.mElapsedTime.setText(timeText);
Expand All @@ -127,7 +129,7 @@ class MeditateView extends Ui.View {
var alarmTime = me.mMeditateModel.getSessionTime();
me.mMainDuationRenderer.drawOverallElapsedTime(dc, me.mMeditateModel.elapsedTime, alarmTime);

me.mHrStatusText.setText(me.formatHr(me.mMeditateModel.currentHr));
me.mHrStatusText.setText(me.formatHr(currentHr));
me.mHrStatusText.draw(dc);
me.mHrStatus.draw(dc);

Expand Down

0 comments on commit 5bbc773

Please sign in to comment.