Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fevieira27 authored Jan 4, 2024
1 parent 4fe4ce1 commit 73b9629
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion settings/AnalogSettingsView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AnalogSettingsViewTest extends WatchUi.Menu2 {
function initialize() {
Menu2.initialize(null);

var currentVersion=435;
var currentVersion=440;
if (Storage.getValue(23)==null or Storage.getValue(23)<currentVersion){
Storage.setValue(23,currentVersion);

Expand Down
8 changes: 4 additions & 4 deletions source/AnalogApp.mc
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class AnalogWatch extends Application.AppBase
}

// This method runs each time the main application starts.
public function getInitialView() as Array<Views or InputDelegates>? {
public function getInitialView() {
var mainView = new AnalogView();
if( Toybox.WatchUi has :WatchFaceDelegate ) {
var inputDelegate = new $.AnalogDelegate(mainView);
return [mainView, inputDelegate] as Array<Views or InputDelegates>;
return [mainView, inputDelegate];
} else {
return [mainView] as Array<Views>;
return [mainView];
}
}

Expand All @@ -42,7 +42,7 @@ class AnalogWatch extends Application.AppBase
// }

function getSettingsView() {
return [new $.AnalogSettingsViewTest(), new $.Menu2TestMenu2Delegate()] as Array<Views or InputDelegates>;
return [new $.AnalogSettingsViewTest(), new $.Menu2TestMenu2Delegate()]; // as Array[InputDelegate];
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/AnalogView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AnalogView extends WatchUi.WatchFace
}
}

var currentVersion=435;
var currentVersion=440;

if (Storage.getValue(23)==null or Storage.getValue(23)<currentVersion){
var checks = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false];
Expand Down

0 comments on commit 73b9629

Please sign in to comment.