-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed progressbar - only count songs that are not yet local - fixed crash on sync empty playlist (progress divide by 0) - fixed initial Sync setup (removed deprecated uses) - fixed crashes on Error handling - added last sync time record - added support for descentmk2 device
- Loading branch information
Showing
17 changed files
with
176 additions
and
84 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
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
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
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,42 +1,21 @@ | ||
using Toybox.Media; | ||
using Toybox.WatchUi; | ||
|
||
// Delegate for playback menu | ||
class SubMusicConfigurePlaybackMenuDelegate extends WatchUi.Menu2InputDelegate { | ||
class SubMusicConfigurePlaybackMenuDelegate extends WatchUi.BehaviorDelegate { | ||
|
||
// Constructor | ||
function initialize() { | ||
Menu2InputDelegate.initialize(); | ||
BehaviorDelegate.initialize(); | ||
|
||
System.println("Constructing PlaybackMenuDelegate"); | ||
} | ||
|
||
// When an item is selected, add or remove it from the system playlist | ||
function onSelect(item) { | ||
|
||
System.println("onSelect PlaybackMenuDelegate"); | ||
var playlist = Application.Storage.getValue(Storage.PLAYLIST); | ||
|
||
if (playlist == null) { | ||
playlist = []; | ||
} | ||
|
||
if (item.isChecked()) { | ||
playlist.add(item.getId()); | ||
} else { | ||
playlist.remove(item.getId()); | ||
} | ||
|
||
Application.Storage.setValue(Storage.PLAYLIST, playlist); | ||
function onSelect(item) { | ||
|
||
// store selection as current playlist | ||
Application.Storage.setValue(Storage.PLAYLIST, item.getId()); | ||
Media.startPlayback(null); | ||
} | ||
|
||
// Pop the view when done | ||
function onDone() { | ||
Media.startPlayback(null); | ||
} | ||
|
||
// Pop the view when back is pushed | ||
|
||
function onBack() { | ||
WatchUi.popView(WatchUi.SLIDE_IMMEDIATE); | ||
WatchUi.popView(WatchUi.SLIDE_IMMEDIATE); | ||
} | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.