Hello,
i have a question on the onBack() function.
For Example when i use the ProgressBar provided by connect IQ.
Is there a way to lock the onBack() function while the ProgressBar is running.
I have a progress running in the background that updates the ProgressBar.setProgress(...) function.
When the progress is finished, i use WatchUi.popView(...) to close the ProgressBar.
As soon as i hit the Back button on the watch it jumps to the underlying View, the progress still goes on.
Now when the progress finishes it hits WatchUi.popView(...) and closes the application as the Initial View was lying unter the Progress Bar on the Stack.
Can i avoid the onBack() to jump back while ProgressBar is on?
I tried to overwrite it with return false and return true but nothing changed.
Of course i can make a variable that tells if the ProgessBar is on or not an prevent the popView to trigger, but i would like to know if i can overwrite the behaviour of
???????the onBack() function.
Any suggestions?
Thanks in advice.
Mike