Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24035] Android: Having both onOpen and onFocus on a window hides MenuItem

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.4.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterRene Pot
AssigneeUnknown
Created2016-10-14T12:26:25.000+0000
Updated2018-02-28T19:55:29.000+0000

Description

(Attached is test app) On android when there is both onOpen and onFocus on a window.xml file the menuItems will not render. Attached an example application that demonstrates the issue. When removing one of the 2 (doesn't matter which) the menu re-appears. XML is very simple
<Alloy>
	<Window class="container" onOpen="openWin" onFocus="openWin" >
        
        <Menu platform="android">
            <MenuItem id="mapButton" onClick="clickButton"></MenuItem>
        </Menu>
        
        <Label text="Test" />

	</Window>
</Alloy>
And so is the tss
"#mapButton[platform=android]":{
    icon: "/images/andrIcMap.png",
    showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS,
    title: 'Map'
}

Attachments

FileDateSize
Test.zip2016-10-14T12:25:44.000+00002215584

Comments

No comments

JSON Source