Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1874] Android: AlertDialog Doesn't Indicate Cancel State on Back

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect, rplist
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T03:04:28.000+0000
Updated2011-04-17T01:57:25.000+0000

Description

See http://developer.appcelerator.com/helpdesk/view/44381">Helpdesk 44381

Gist of discussion

I pulled up the API Docs http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.AlertDialog-object"> http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.AlertDialog-object doesn't look like iPhone sends a close either. They do allow setting the index of the cancel and the event coming back is suppose to have cancel true/false

So how about when the back button is hit, I set cancel to true in the event and if there is an index on creation, set index to what you passed on creation, otherwise -1?

Comments

  1. Don Thorp 2011-04-15

    (from [d32737b27765342f210a8487a24d4b4e64f0519d]) [#1874 state:fixed-in-qa] added support for cancel index and cancel flag in event. http://github.com/appcelerator/titanium_mobile/commit/d32737b27765342f210a8487a24d4b4e64f0519d"> http://github.com/appcelerator/titanium_mobile/commit/d32737b277653...

  2. Thomas Huelbert 2011-04-15

    1.4.2.5935b3 G1 (1.6) sim with 2.2

JSON Source