Skip to content

Commit

Permalink
Added touch and hold to edit global settings for touch screen devices
Browse files Browse the repository at this point in the history
  • Loading branch information
dliedke committed Jul 16, 2022
1 parent 6066793 commit 15d5711
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Meditate/manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- 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">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f773f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="2.5.5">
<iq:application entry="MeditateApp" id="9abb375dcf7c4ace87ff66f4f773f6c8" launcherIcon="@Drawables.launcherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="watch-app" version="2.5.6">
<iq:products>
<iq:product id="approachs62"/>
<iq:product id="d2air"/>
Expand Down
11 changes: 10 additions & 1 deletion Meditate/source/globalSettings/GlobalSettingsDelegate.mc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,18 @@ class GlobalSettingsDelegate extends ScreenPicker.ScreenPickerDelegate {
}

function onMenu() {
Ui.pushView(new Rez.Menus.globalSettingsMenu(), new GlobalSettingsMenuDelegate(method(:onGlobalSettingsChanged)), Ui.SLIDE_LEFT);
return me.showGlobalSettingsMenu();
}

function onHold(param) {
return me.showGlobalSettingsMenu();
}

function showGlobalSettingsMenu()
{
Ui.pushView(new Rez.Menus.globalSettingsMenu(), new GlobalSettingsMenuDelegate(method(:onGlobalSettingsChanged)), Ui.SLIDE_LEFT);
}

function onBack() {
Ui.switchToView(me.mSessionPickerDelegate.createScreenPickerView(), me.mSessionPickerDelegate, Ui.SLIDE_RIGHT);
return true;
Expand Down
2 changes: 1 addition & 1 deletion UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ On this screen you can see the applicable settings for the selected session

### 4. Global Settings

From the session picker screen hold the menu button (for Vivoactive 3 hold on the screen/Vivoactive 4 and Venu - hold the back button) until you see the Session settings menu. Select the Global Settings Menu. You see a view with the states of the global settings.
From the session picker screen hold the menu button (for Vivoactive 3/ Venu 2 hold on the screen/Vivoactive 4 and Venu - hold the back button) until you see the Session settings menu. Select the Global Settings Menu. You see a view with the states of the global settings.

![Global settings](userGuideScreenshots/globalSettings.png)

Expand Down

0 comments on commit 15d5711

Please sign in to comment.