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

Activate event not fired on android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Mobile: ViewNavigator
    • None
    • Affected OS(s): Google Android
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a new Flex Mobile project and add a orientation change handler in the view activate event
      <fx:Script>
      <![CDATA[
      protected function view1_activateHandler(event:Event):void

      { systemManager.stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, orientationChangeHandler, true); }

      private function orientationChangeHandler(event:StageOrientationEvent):void

      { itemList.visible=false; }

      ]]
      >
      </fx:Script>

      2. Add a simple list as below

      <s:List height="100%" width="100%" id="itemList" verticalScrollPolicy="on">
      <s:itemRenderer>
      <fx:Component>
      <s:IconItemRenderer width="100%" height="100%" labelField="firstName" messageField="phone" iconWidth="0" iconHeight="0"/>
      </fx:Component>
      </s:itemRenderer>
      <s:dataProvider>
      <s:ArrayList>
      <fx:Object type="hr" firstName="Ann" lastName="Green" phone="650-235-2233" />
      <fx:Object type="employee" firstName="Tom" lastName="Smith" phone="415-155-1212" />
      <fx:Object type="employee" firstName="John" lastName="Black" phone="408-344-1234" />
      <fx:Object type="employee" firstName="Jane" lastName="White" phone="415-235-7878" />
      <fx:Object type="employee" firstName="Bill" lastName="Jones" phone="415-875-7800" />
      </s:ArrayList>
      </s:dataProvider>
      </s:List>

      3. Clean project and run on Android

      Actual Results:
      List does not disappear on orientation change. This seems to be the issue most times though intermittent. Especially reproducible on the device itself and on Droid Incredible adl after a clean build

      Expected Results:
      List should become invisible if the orientation change handler is registered.

      Workaround (if any):
      Add orientation handler in creationComplete(event)

      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: