When I click back in my app (GRouteLoader0 in the sim, it pops the one view.
In a real 1030, theirs a difference in behavior with different firmware.
8.0 -> back pops the view (just like the sim).
9.0 -> back pops twice.
I verified this by rolling back the firmware on the device.
(The onPreviousPage() code works fine.)
I added a printn to trace the onBack() and onHide() calls. They aren't being called twice (it seems).
I think the new firmware is broken.
function onPreviousPage()
{
var appbase = Application.getApp();
var appextra = appbase.appextra;
appextra.intAction = appextra.intActionPrior;
appextra.intDownloadState = appextra.intDownloadStatePrior;
appextra.intActionPrior = :action_null;
appextra.intDownloadStatePrior = :state_null;
System.println("onPreviousPage()");
WatchUi.popView(WatchUi.SLIDE_RIGHT);
}
function onBack()
{
var appbase = Application.getApp();
var appextra = appbase.appextra;
appextra.intAction = appextra.intActionPrior;
appextra.intDownloadState = appextra.intDownloadStatePrior;
appextra.intActionPrior = :action_null;
appextra.intDownloadStatePrior = :state_null;
System.println("onBack()");
}