mirror of
https://github.com/memen45/SubMusic.git
synced 2026-02-18 00:57:39 +01:00
- fixes reset session on settings changed (AmpacheAPI) - fixes potential bug from incompatible storage - fixes error reporting in "Server Info" tab - fixes sync - 'fake sync' bug - fixes crash on receiving error (AmpacheAPI) - updated changelog
34 lines
804 B
MonkeyC
34 lines
804 B
MonkeyC
using Toybox.WatchUi;
|
|
using Toybox.Media;
|
|
|
|
class SubMusicConfigureSyncDelegate extends WatchUi.Menu2InputDelegate {
|
|
|
|
private var d_provider;
|
|
|
|
function initialize(provider) {
|
|
Menu2InputDelegate.initialize();
|
|
|
|
d_provider = provider;
|
|
}
|
|
|
|
function onSelect(item) {
|
|
var id = item.getId();
|
|
|
|
if (SyncMenu.PLAYLISTS == id) {
|
|
WatchUi.pushView(new SubMusicConfigureSyncPlaylistView(d_provider), new WatchUi.BehaviorDelegate(), WatchUi.SLIDE_IMMEDIATE);
|
|
return;
|
|
}
|
|
if (SyncMenu.TEST == id) {
|
|
WatchUi.pushView(new SubMusicConfigureSyncTestView(d_provider), new WatchUi.BehaviorDelegate(), WatchUi.SLIDE_IMMEDIATE);
|
|
return;
|
|
}
|
|
if (SyncMenu.START_SYNC == id) {
|
|
WatchUi.popView(WatchUi.SLIDE_IMMEDIATE);
|
|
return;
|
|
}
|
|
WatchUi.popView(WatchUi.SLIDE_IMMEDIATE);
|
|
return;
|
|
}
|
|
|
|
}
|