Skip to content

Commit

Permalink
Fixing fatal bug that occurred when vivoactive HR tried to play a tone.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahemm committed Dec 10, 2016
1 parent 03780d9 commit 7f00ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/CountdownView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CountdownView extends Ui.View {
shortVibe = [new Attn.VibeProfile(100, 250)];
Attn.vibrate(shortVibe);

if (!mDevice.equals("vivoactive")) {
if (!mDevice.equals("vivoactive") && !mDevice.equals("vivoactive_hr")) {
Attn.playTone(Attn.TONE_KEY);
}
}
Expand Down Expand Up @@ -59,7 +59,7 @@ class CountdownView extends Ui.View {
} else {
Attn.vibrate(shortVibe);

if (!mDevice.equals("vivoactive")) {
if (!mDevice.equals("vivoactive") && !mDevice.equals("vivoactive_hr")) {
Attn.playTone(Attn.TONE_KEY);
}
}
Expand Down

0 comments on commit 7f00ba7

Please sign in to comment.