Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16947

Blackberry : Titanium.UI.AlertDialog.hide() prevents reuse of dialog

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: Release 3.2.2, Release 3.2.3
    • Fix Version/s: None
    • Component/s: BlackBerry
    • Labels:
    • Environment:

      Blackberry 10.2, Titanium Studio 3.2.3.201404181442

      Description

      Problem Description

      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({backgroundColor:'white',});
      win.open();
       
      var a = Ti.UI.createAlertDialog(
       
      { message: 'Message a', buttonNames: ['OK'] }
      );
      a.show();
      a.hide();
      a.show();
      

      3. Run this in the emulator.

      Expected results

      The app showing the alert dialog.

      Actual results

      The app doesn't show anything after using the .hide function.

      Extra info

      If you try to show other dialogs, and use hide in the first one, that hide will block all the others dialogs, like in this code:

      var win = Ti.UI.createWindow({backgroundColor:'white',});
      win.open();
       
      var other = Ti.UI.createAlertDialog(
       
      { message: 'Message other', buttonNames: ['OK'] }
      );
      var a = Ti.UI.createAlertDialog(
       
      { message: 'Message a', buttonNames: ['OK'] }
      );
      a.show();
      a.hide();
      other.show();
      a.show();
      

      even if other is never "hide", it won't show.

      We ran this code and the one in the steps to reproduce in iOS and Android, and ran without issues.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mpmiranda Mauro Parra-Miranda
                Reporter:
                thodev Thorsten Meyer
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18697
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration