I've implemented a View that simply shows a message on the screen (class below). I pop an instance of this view onto the stack. The message shown instructs the user to login via the Garmin Connect mobile phone app (it's part of the oauth flow). After the user has logged in, I call Ui.switchToView as follows:
Ui.switchToView(progressBar, null, Ui.SLIDE_IMMEDIATE);
Then, when some background work is complete, I call another Ui.switchToView, this time with another simple message view. My problem is that when I hit "back" on this final message view, it takes me back to the message instructing the user to login via the Garmin Connect mobile phone app. I thought that the switchToView where the "login via garmin connect" view was replaced with the progress bar should have removed that message from the stack?
What am I doing wrong? Thanks in advance!