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

Android mobile app crashes when you click on a modal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Apache Flex 4.11.0
    • None
    • None
    • None
    • Mobile Android

    Description

      open a popup element (a group with a button inside) as Modal

      " PopUpManager.addPopUp(element, true)"

      and click on the modal element or the button. The application will stop responding and will crash.

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">
      <fx:Script>
      <![CDATA[
      import mx.core.IFlexDisplayObject;
      import mx.managers.PopUpManager;
      import spark.components.Button;
      protected function openPopup(asModal:Boolean):void

      { grpContainer.enabled = false; var popUpBtn:Button = new Button(); popUpBtn.label = asModal?"Close Modal Button":"Close Modeless Button"; popUpBtn.addEventListener(MouseEvent.CLICK, closePopup); lblMessage.text = ""; PopUpManager.addPopUp(popUpBtn, this, asModal); PopUpManager.centerPopUp(popUpBtn); }

      protected function closePopup(event:MouseEvent):void

      { lblMessage.text = "Popup closed !!!" PopUpManager.removePopUp(event.target as IFlexDisplayObject); grpContainer.enabled = true; }

      ]]>
      </fx:Script>
      <s:VGroup id="grpContainer">
      <s:Button label="Open as Modeless" click="openPopup(false)" />
      <s:Button label="Open as Modal" click="openPopup(true)"/>
      <s:Spacer height="100%" />
      <s:Label id="lblMessage" />
      </s:VGroup>
      </s:Application>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hmdavid Hermes David Junior
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: