Skip to content

Commit d060a23

Browse files
committed
1.6.6 - fix crash in Timer.start
It may be caused with incorrect background mode detection
1 parent 5b4412d commit d060a23

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

manifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- 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">
2-
<iq:application entry="ElPrimeroApp" id="2C83218064D49991A5F44E8292B3C90A" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="1.3.1" name="@Strings.AppName" type="watchface" version="1.6.5">
2+
<iq:application entry="ElPrimeroApp" id="2C83218064D49991A5F44E8292B3C90A" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="1.3.1" name="@Strings.AppName" type="watchface" version="1.6.6">
33
<iq:products>
44
<iq:product id="fenix5"/>
55
<iq:product id="fenix5plus"/>

resources/settings/properties.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<properties>
2-
<property id="appVersion" type="string">1.6.5</property>
2+
<property id="appVersion" type="string">1.6.6</property>
33
<property id="backgroundColor" type="number">85</property>
44
<property id="twoHertzMode" type="boolean">true</property>
55
<property id="utcOffset" type="number">0</property>

resources/strings/strings.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<strings>
22
<string id="AppName">ElPrimero</string>
3-
<string id="InternalVersion">1.6.5</string>
3+
<string id="InternalVersion">1.6.6</string>
44
<string id="WeekDays">SUNMONTUEWEDTHUFRISAT</string>
55
<string id="Months">JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC</string>
66
<string id="Icons">ZABSN</string>

source/ElPrimeroView.mc

+6-1
Original file line numberDiff line numberDiff line change
@@ -633,22 +633,27 @@ class ElPrimeroView extends WatchUi.WatchFace {
633633
// the state of this View and prepare it to be shown. This includes
634634
// loading resources into memory.
635635
function onShow() {
636-
mState.reset(false);
636+
mState.reset(true);
637+
System.println("onShow");
637638
}
638639

639640
// Called when this View is removed from the screen. Save the
640641
// state of this View here. This includes freeing resources from
641642
// memory.
642643
function onHide() {
644+
System.println("onHide");
643645
}
644646

645647
// The user has just looked at their watch. Timers and animations may be started here.
646648
function onExitSleep() {
649+
System.println("onExitSleep");
647650
mState.reset(false);
651+
648652
}
649653

650654
// Terminate any active timers and prepare for slow updates.
651655
function onEnterSleep() {
656+
System.println("onEnterSleep");
652657
mState.reset(true);
653658
}
654659

0 commit comments

Comments
 (0)