[TIMOB-10710] Android: Add persistent property support to Titanium.UI.AlertDialog and Titanium.UI.OptionDialog
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Reopened |
| Resolution | Unresolved |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Release 3.0.0, Sprint 2012-19 API, 2012 Sprint 19 |
| Components | Android |
| Labels | api, module_alertdialog, module_optiondialog, parity, qe-and100112, qe-testadded |
| Reporter | Max Stepanov |
| Assignee | Unknown |
| Created | 2012-08-29T16:15:31.000+0000 |
| Updated | 2018-02-28T20:04:16.000+0000 |
Test case: --- AlertDialog ---
1. Run the code above. Click home key and go back to the app, and you should NOT see the dialog. --- OptionDialog ---// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); var tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); tabGroup.addTab(tab1); tabGroup.open(); var alertDialog = Titanium.UI.createAlertDialog({ title : "Title", message : "Message", buttonNames : ["Yes", "No"], persistent: false }); alertDialog.show();1. Run code. Click on screen. Press home key. Go back to app. Dialog should disappear.Ti.UI.setBackgroundColor('white'); var win = Ti.UI.createWindow({ title: 'Click window to test', backgroundColor: 'white', exitOnClose: true, fullscreen: false }); var opts = { cancel: 2, options: ['Confirm', 'Help', 'Cancel'], selectedIndex: 2, destructive: 0, persistent: false, title: 'Delete File?' }; win.addEventListener('click', function(e){ var dialog = Ti.UI.createOptionDialog(opts).show(); }); win.open();Reopening issue. "Normal alert" does not go away after backgrounding the app. Tested on: OS: Mac OS X Lion 10.7.4 Titanium Studio, build: 2.1.2.201208301612 Titanium SDK, build: 3.0.0.v20121007054913 Device: Samsung Galaxy III (4.0.4)
Reopening this issue as "Normal alert" does not go away after backgrounding the app. Tested With: SDK - 3.1.0.v20130403114957, 3.0.2.GA Studio - 3.1.0.201304011603 Device - Samsung Galaxy Note (v2.3.6) OS - OSX 10.8
This works fine for me, "persistent" property works as expected. Closing ticket until further info.
Reopening the issue as "Normal alert" doesn't go away after you background the app. *Tested with:* Studio 4.8.0.201610171310 Ti SDK 6.0.0.v20161024184632 Appc NPM Appc CLI 6.0.0-61 Ti CLI 5.0.10 Device - Nexus 4 (4.2.1), Galaxy S4 (4.4.4), Nexus 6 (6.0.1)