Ticket Created
over 4 years ago

WERETECH-9934

Impossible to pushView from TextPickerDelegate.onTextEntered

I tried to push a Progressbar from TextPickerDelegate.onTextEntered, but the ProgressBar doesn't appear on screen on the device, while it does on the simulator.

Through trial and error I was able to work around the issue by pushing the view twice:

function onTextEntered(text, changed)
{
	var progressBar = new WatchUi.ProgressBar("Searching...", null);
	WatchUi.switchToView(progressBar, SearchProgressDelegate(), WatchUi.SLIDE_IMMEDIATE);
	WatchUi.pushView(progressBar, new SearchProgressDelegate(), WatchUi.SLIDE_IMMEDIATE);
	return true; // This is not documented in the SDK!!!
}

It also seems that there's a different behavior for return true/false that is not documented in the SDK.

Parents
  • I'm on SDK 3.2.3, the device is a Finix 6 Pro.

    If I use 1 push it doesn't work, but if I use 2 pushView (or switchToView+pushVIew) it works. I think that there's some hidden behavior after onTextEntered on the view stack.

Comment
  • I'm on SDK 3.2.3, the device is a Finix 6 Pro.

    If I use 1 push it doesn't work, but if I use 2 pushView (or switchToView+pushVIew) it works. I think that there's some hidden behavior after onTextEntered on the view stack.

Children