Hi,
I just implemented a ViewLoop, and on my watch (not the simulator) I get this exception when switching views. It seems to happen after the view is switched, because the visually the view still changes.
Exception: ViewLoop is not the current active page
Stack:
- pc: 0x100026b9
File: 'D:\Projects\EVCC Garmin\evcc\source\EvccViewLoopDelegate.mc'
Line: 21
Function: onNextView
- pc: 0x30003640
My code looks like this, line 21 where the exception occurs is the changeView call.
function onNextView() {
try {
_viewLoop.changeView( WatchUi.ViewLoop.DIRECTION_NEXT ); // this is line 21
return true;
} catch ( ex ) {
EvccHelper.debugException( ex );
return false;
}
}
Has anyone seen this before?