mirror of
https://github.com/memen45/SubMusic.git
synced 2026-12-01 02:02:28 +01:00
fixed some rare crashes on receiving invalid response added setting to enable debug logging removed default debug output (speed improvement)
34 lines
892 B
MonkeyC
34 lines
892 B
MonkeyC
using Toybox.WatchUi;
|
|
using SubMusic.Menu;
|
|
using SubMusic;
|
|
|
|
module SubMusic {
|
|
module Menu {
|
|
class Browse extends MenuBase {
|
|
|
|
function initialize() {
|
|
MenuBase.initialize(WatchUi.loadResource(Rez.Strings.Browse_label), false);
|
|
}
|
|
|
|
function load() {
|
|
if ($.debug) {
|
|
System.println("Menu.Browse::load()");
|
|
}
|
|
return MenuBase.load([
|
|
new Menu.PlaylistsRemote(WatchUi.loadResource(Rez.Strings.Playlists_label)),
|
|
new Menu.PodcastsRemote(WatchUi.loadResource(Rez.Strings.Podcasts_label)),
|
|
// new Menu.Radiostations(WatchUi.loadResource(Rez.Strings.Radiostations_label)),
|
|
{
|
|
LABEL => WatchUi.loadResource(Rez.Strings.Donate_label),
|
|
SUBLABEL => null,
|
|
METHOD => method(:onDonate),
|
|
},
|
|
]);
|
|
}
|
|
|
|
static function onDonate() {
|
|
WatchUi.pushView(new DonateView(), new DonateDelegate(), WatchUi.SLIDE_IMMEDIATE);
|
|
}
|
|
}
|
|
}
|
|
} |