Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-847] Android: Setting background color on heavyweight window crashes

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.3.0
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T02:37:47.000+0000
Updated2011-04-17T01:54:25.000+0000

Description

setModelListener was getting called too early in the process, before the activity had been set for the heavyweight window.

Comments

  1. Don Thorp 2011-04-15

    (from [118290694a4a4dbfaea7100ac5b1bc8860cc9355]) [#847 state:resolved] setting background properties on a heavyweight window caused an NPE since the windowActivity had not yet been set. I moved the setModelListener for both lightweight and heavyweight windows to the appropriate location. http://github.com/appcelerator/titanium_mobile/commit/118290694a4a4dbfaea7100ac5b1bc8860cc9355"> http://github.com/appcelerator/titanium_mobile/commit/118290694a4a4...

JSON Source