Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12560] BlackBerry : For double alerts the second alert is fired immediately rather than waiting for the first alert to close

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-08-13T16:14:37.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 16, 2013 Sprint 16 API, Release 3.2.0
ComponentsBlackBerry
Labelsn/a
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-02-02T00:40:53.000+0000
Updated2013-11-14T00:17:44.000+0000

Description

Description: 1.Build and run KS on BB simulator/device or use the code below 2.In KS goto base_ui -> views -> alert dialog 3.Tap on double alert OR Use this test code:
var win = Ti.UI.createWindow({  
  backgroundColor: 'white',
});

var button4 = Titanium.UI.createButton({
title:'Double Alert',
height:100,
width:400,
top:160
});
	
button4.addEventListener('click', function()
{
// test firing 2 alerts in a row, should show the
// first and after you click OK, should then show the next
alert("You should see this first");
alert("Now you should see this one, assuming you dismissed the first alert");
});
win.add(button4);
win.open();
Actual result: 1.We get two alerts one after another without waiting for us to close the first alert Expected Result: 1.After taping on 'OK' or 'Cancel' on the first alert then we should get the second alert

Comments

  1. Pedro Enrique 2013-08-09

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/156
  2. Samuel Dowse 2013-11-14

    Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311122225 Titanium SDK, build: 3.2.0.v20131113094843 CLI: 3.2.0 Alloy: 1.3.0 BlackBerry Simulator: 10.2.0.1791 Verified the fix using the test code from the description. Clicking the button produced an alert, once that one is closed the second alert pops up. Alerts don't pop up at the same time. Closing.

JSON Source