Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10710] Android: Add persistent property support to Titanium.UI.AlertDialog and Titanium.UI.OptionDialog

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Sprint 2012-19 API, 2012 Sprint 19
ComponentsAndroid
Labelsapi, module_alertdialog, module_optiondialog, parity, qe-and100112, qe-testadded
ReporterMax Stepanov
AssigneeUnknown
Created2012-08-29T16:15:31.000+0000
Updated2018-02-28T20:04:16.000+0000

Description

Comments

  1. Hieu Pham 2012-09-12

    Test case: --- AlertDialog ---
       // 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 the code above. Click home key and go back to the app, and you should NOT see the dialog. --- OptionDialog ---
       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();
       
    1. Run code. Click on screen. Press home key. Go back to app. Dialog should disappear.
  2. Tamila Smolich 2012-10-08

    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)
  3. Dhirendra Jha 2013-04-04

    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
  4. Hieu Pham 2016-06-01

    This works fine for me, "persistent" property works as expected. Closing ticket until further info.
  5. Lee Morris 2016-10-25

    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)

JSON Source