- Tap on non-selected icon rotates instead of opening, flag prevents onSelect from double-firing - GpsService.stop() for clean cancellation - LoadingView stops GPS on hide (BACK button) - LoadingDelegate allows BACK to cancel GPS acquisition Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
349 B
MonkeyC
15 lines
349 B
MonkeyC
import Toybox.Lang;
|
|
import Toybox.WatchUi;
|
|
|
|
// Allows the user to cancel GPS acquisition by pressing BACK.
|
|
class LoadingDelegate extends WatchUi.BehaviorDelegate {
|
|
|
|
function initialize() {
|
|
BehaviorDelegate.initialize();
|
|
}
|
|
|
|
function onBack() as Boolean {
|
|
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
|
return true;
|
|
}
|
|
}
|