Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26955

ViewNavigator.popToFirstView() allows you to pop all views off of the stack

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Mobile: ViewNavigator
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create view-based mobile app with three views, e.g. "first view," "second view," and "third view"
      2. Add buttons to views to support navigation: push second view onto first view, push third view onto second view
      3. Add "back key" handler on third view that calls "navigator.popToFirstView()"

      Actual Results:
      All views are popped, resulting in blank screen (with blank action bar)

      Expected Results:
      Although usage is incorrect (i.e. code should call event.preventDefault() to prevent the normal back key behavior from being performed), at no point should the navigator allow you to pop all views from the stack.

      Workaround (if any):
      Call event.preventDefault() after popToFirstView().

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: