Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16950] Blackberry : Titanium.UI.AlertDialog.hide() prevents any use of other dialog

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2014-05-21T21:39:29.000+0000
Affected Version/sRelease 3.2.2, Release 3.2.3
Fix Version/sRelease 3.0.0
ComponentsBlackBerry
Labelsapi, module_alertdialog, qe-closed-3.3.0, qe-testadded
ReporterThorsten Meyer
AssigneePedro Enrique
Created2014-05-13T06:30:48.000+0000
Updated2014-06-30T10:09:39.000+0000

Description

Problem Description

if i hide one Titanium.UI.AlertDialog with .hide(), other dialogs after this will not show up too! Example: If a AlertDialog is hidden by .hide(), the Dialog can not be shown again using .show(). Happens on Blackberry Simulator an on device.

Steps to reproduce

1. Create a new mobile project with bb support 2. Add this to app.js:
var win = Ti.UI.createWindow(
var other = Ti.UI.createAlertDialog(

{ message: 'Message', buttonNames: ['OK'] }
); 
var a = Ti.UI.createAlertDialog(

{ message: 'Message', buttonNames: [] }
); 
a.show(); 
a.hide(); 
other.show();
3. Run this in the emulator.

Expected results

The app showing the "other" alert dialog.

Actual results

The app doesn't show any dialog after using the .hide function in at least one dialog

Comments

  1. Pedro Enrique 2014-05-15

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/224
  2. Priya Agarwal 2014-06-30

    Verified with: Appcelerator-Studio:3.3.0.201406271159 Sdk:3.3.0.v20140627202512 acs:1.0.14 alloy:1.4.0-rc3 npm:1.3.2 titanium:3.3.0-rc4 titanium-code-processor:1.1.1 xcode:5.1.1 OS:Maverick(10.9.3) Device:Blackberry Z10(10.0.10.261) AlertDialog hide() working as expected. Hence closing the issue.

JSON Source