-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6.1.0 - Finalization time implementation
- Loading branch information
Showing
10 changed files
with
139 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Meditate/resources/menus/globalSettings/finalizeTimeOptionsMenu.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<menu id="finalizeTimeOptionsMenu" title="@Strings.menuFinalizeTimeOptions_title"> | ||
<menu-item id="time_0s" label="@Strings.menuPrepareTimeOptions_0s" /> | ||
<menu-item id="time_15s" label="@Strings.menuPrepareTimeOptions_15s" /> | ||
<menu-item id="time_30s" label="@Strings.menuPrepareTimeOptions_30s" /> | ||
<menu-item id="time_45s" label="@Strings.menuPrepareTimeOptions_45s" /> | ||
<menu-item id="time_1m" label="@Strings.menuPrepareTimeOptions_1m" /> | ||
<menu-item id="time_2m" label="@Strings.menuPrepareTimeOptions_2m" /> | ||
<menu-item id="time_3m" label="@Strings.menuPrepareTimeOptions_3m" /> | ||
<menu-item id="time_4m" label="@Strings.menuPrepareTimeOptions_4m" /> | ||
<menu-item id="time_5m" label="@Strings.menuPrepareTimeOptions_5m" /> | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
using Toybox.WatchUi as Ui; | ||
using Toybox.Lang; | ||
using Toybox.WatchUi as Ui; | ||
using Toybox.Application as App; | ||
|
||
class MeditatePrepareDelegate extends Ui.BehaviorDelegate { | ||
|
||
var mSessionPickerDelegate; | ||
var mMeditatePrepareView; | ||
|
||
function initialize(sessionPickerDelegate) { | ||
function initialize(sessionPickerDelegate, meditatePrepareView) { | ||
mSessionPickerDelegate = sessionPickerDelegate; | ||
mMeditatePrepareView = meditatePrepareView; | ||
Ui.BehaviorDelegate.initialize(); | ||
} | ||
|
||
function onBack() { | ||
return true; | ||
} | ||
|
||
function onKey(keyEvent) { | ||
return true; | ||
} | ||
|
||
function onBack() { | ||
|
||
// Starts the meditation session / saves the session | ||
if (mMeditatePrepareView!=null) { | ||
mMeditatePrepareView.continueToNextStep(); | ||
} | ||
|
||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters