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

Android: Modal window is not getting closed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.1.2
    • Component/s: Android
    • Environment:

      Description

      Note - This is a regression. Issue is not reproducible in 3.1.1.GA build.

      Steps -
      1. Run the below app.
      2. Press the "Press me" button. A new modal window is displayed.
      3. Press the "close" button.

      Actual Result - Does not happen anything. It seems that Close button is not tappable.

      Expected Result - On Close button, model window should close.

      Note - In the below code, there are two win.open() methods. Above code is working fine in 3.1.1.GA build and it fails in 3.1.2.v20130801190110 build. If we remove one win.open() method then the same code works fine in 3.1.1.GA and 3.1.2.v20130801190110 build. Please confirm the correct behavior according to new window architecture change for Android.

      var _window = Ti.UI.createWindow({
      	backgroundColor: 'white',
      });
      		
      var button = Ti.UI.createButton({
      	title : 'Press me'
      });
      button.addEventListener('click', function() {
      	var button2 = Ti.UI.createButton({
      	title : 'close'
      });
      	var win = Ti.UI.createWindow({
      	modal : true,
      	backgroundColor : '#c96'
      	});
      	button2.addEventListener('click', function() {
      		win.close();
      	});
      	win.add(button2);
      	win.open();
      	win.open();
      });
      _window.add(button);
      _window.open();

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                djha Dhirendra Jha
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code