mirror of
https://github.com/memen45/SubMusic.git
synced 2026-11-29 17:21:30 +01:00
- 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
22 lines
464 B
MonkeyC
22 lines
464 B
MonkeyC
using Toybox.WatchUi;
|
|
|
|
class SubMusicConfigurePlaybackMenuDelegate extends WatchUi.BehaviorDelegate {
|
|
|
|
function initialize() {
|
|
BehaviorDelegate.initialize();
|
|
|
|
}
|
|
|
|
function onSelect(item) {
|
|
|
|
// store selection as current playlist
|
|
Application.Storage.setValue(Storage.PLAYLIST, item.getId());
|
|
Media.startPlayback(null);
|
|
}
|
|
|
|
function onBack() {
|
|
WatchUi.popView(WatchUi.SLIDE_IMMEDIATE);
|
|
}
|
|
|
|
}
|