Skip to content

Commit f5ea7ee

Browse files
committed
version 1.1.6
* manifest file now asks properly for Positioning permissions * Leftover layout.xml (dead code) removed * more stable mechanism for resets when a new activity is started
1 parent f16241a commit f5ea7ee

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

manifest.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
<iq:product id="edge_1000"/>
88
<iq:product id="edge_520"/>
99
</iq:products>
10-
<iq:permissions/>
10+
<iq:permissions>
11+
<iq:uses-permission id="Positioning"/>
12+
</iq:permissions>
1113
<iq:languages>
1214
<iq:language>eng</iq:language>
1315
</iq:languages>

monkey.jungle

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
project.manifest = manifest.xml
2+
3+
24
# edge 520, 820 etc
35
rectangle-200x265.excludeAnnotations = ed1000;ed1030;headerV
46
# edge 1000 etc
57
rectangle-240x400.excludeAnnotations = ed520;ed1030;header
68
# edge 1030 etc
7-
rectangle-282x470.excludeAnnotations = ed520;ed1000;header
9+
rectangle-282x470.excludeAnnotations = ed520;ed1000;header

resources/layouts/layouts.xml

-6
This file was deleted.

source/EveryTileApp.mc

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ class EveryTileApp extends App.AppBase {
1919
AppBase.initialize();
2020
}
2121

22+
//onStart() is called on application start up
23+
//function onStart(state) {
24+
//}
25+
26+
//onStop() is called when your application is exiting
27+
//function onStop(state) {
28+
//}
29+
2230
//! Return the initial view of your application here
2331
function getInitialView() {
2432
return [new EveryTileView()];

source/EveryTileView.mc

+5-6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ class EveryTileView extends Ui.DataField {
8989
}
9090
}
9191

92+
function onTimerStart()
93+
{
94+
initialized=false;
95+
}
96+
9297

9398
(:ed520)
9499
function onLayout(dc)
@@ -208,12 +213,6 @@ class EveryTileView extends Ui.DataField {
208213
{
209214
heading = 0.0;
210215
}
211-
if (info.elapsedTime < 100)
212-
{
213-
//case when new activity was started, but the old view is still alive
214-
initialized=false;
215-
return;
216-
}
217216

218217
if (info.currentLocation != null)
219218
{

0 commit comments

Comments
 (0)