Skip to content

Commit a0d03d9

Browse files
committed
Version 0.2.1
Added Enduro Loading a non-existent profile sets the profile text to an empty string
1 parent c1b0092 commit a0d03d9

File tree

7 files changed

+29
-12
lines changed

7 files changed

+29
-12
lines changed

manifest-app.xml

Lines changed: 2 additions & 1 deletion
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="myApp" id="6f732e4b486b4213b80366a105c44219" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="0.2.0">
2+
<iq:application entry="myApp" id="6f732e4b486b4213b80366a105c44219" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="0.2.1">
33
<iq:products>
44
<iq:product id="approachs62"/>
55
<iq:product id="d2charlie"/>
@@ -8,6 +8,7 @@
88
<iq:product id="d2deltas"/>
99
<iq:product id="descentmk1"/>
1010
<iq:product id="descentmk2"/>
11+
<iq:product id="enduro"/>
1112
<iq:product id="fenix5"/>
1213
<iq:product id="fenix5plus"/>
1314
<iq:product id="fenix5s"/>

manifest-face.xml

Lines changed: 2 additions & 1 deletion
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="myApp" id="8d536c7547234aac8316482a57451748" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watchface" version="0.2.0">
2+
<iq:application entry="myApp" id="8d536c7547234aac8316482a57451748" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watchface" version="0.2.1">
33
<iq:products>
44
<iq:product id="approachs62"/>
55
<iq:product id="d2charlie"/>
@@ -8,6 +8,7 @@
88
<iq:product id="d2deltas"/>
99
<iq:product id="descentmk1"/>
1010
<iq:product id="descentmk2"/>
11+
<iq:product id="enduro"/>
1112
<iq:product id="fenix5"/>
1213
<iq:product id="fenix5plus"/>
1314
<iq:product id="fenix5s"/>

manifest-face2.xml

Lines changed: 2 additions & 1 deletion
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="myApp" id="31f3bd33f262492c8af669ee5c1a0294" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watchface" version="0.2.0">
2+
<iq:application entry="myApp" id="31f3bd33f262492c8af669ee5c1a0294" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watchface" version="0.2.1">
33
<iq:products>
44
<iq:product id="approachs62"/>
55
<iq:product id="d2charlie"/>
@@ -8,6 +8,7 @@
88
<iq:product id="d2deltas"/>
99
<iq:product id="descentmk1"/>
1010
<iq:product id="descentmk2"/>
11+
<iq:product id="enduro"/>
1112
<iq:product id="fenix5"/>
1213
<iq:product id="fenix5plus"/>
1314
<iq:product id="fenix5s"/>

monkey-app.jungle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ project.manifest = manifest-app.xml
5858

5959

6060

61+
62+
63+
64+
6165

6266

6367

monkey-face.jungle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ project.manifest = manifest-face.xml
5252

5353

5454

55+
56+
57+
58+
5559

5660

5761

monkey-face2.jungle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ project.manifest = manifest-face2.xml
2828

2929

3030

31+
32+
33+
34+
3135

3236

3337

source/myView.mc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,18 +1559,20 @@ class myView
15591559
if (profileNumber>=0 && profileNumber<(24/*PROFILE_NUM_USER*/+PROFILE_NUM_PRESET))
15601560
{
15611561
var s = getProfileString(profileNumber);
1562-
if (s!=null && (s instanceof String))
1562+
if ((s==null) || !(s instanceof String))
15631563
{
1564-
var s2 = "";
1565-
1566-
if (s.length()>255)
1567-
{
1568-
s2 = s.substring(255, s.length());
1569-
s = s.substring(0, 255);
1570-
}
1564+
s = "";
1565+
}
15711566

1572-
setProfileText(s, s2);
1567+
var s2 = "";
1568+
1569+
if (s.length()>255)
1570+
{
1571+
s2 = s.substring(255, s.length());
1572+
s = s.substring(0, 255);
15731573
}
1574+
1575+
setProfileText(s, s2);
15741576

15751577
setProfilePropertiesFaceOrApp(profileNumber);
15761578
}

0 commit comments

Comments
 (0)