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

Android: focus event no longer fires for Window

    Details

      Description

      Problem

      There is a regression in Mobile SDK 2.1.0.v20120607180246 that causes the 'focus' event of Windows to not fire.

      Worded in 2.1.0.v20120520110234
      Broken in 2.1.0.v20120607180246

      Expected Result: console log should show

      == set simple event listeners successfully
      == open event
      == focus event

      Actual Result: console log shows only

      == set simple event listeners successfully
      == open event

      Testcase

      app.js

      var TheWindow=Ti.UI.createWindow({
                      url:'win1.js',
                      layout:'vertical',
                      navBarHidden:false
                    });
      TheWindow.open();
      
      

      win1.js

      var MainWin=Ti.UI.currentWindow;
       
      function OnFocus()
      {
        Ti.API.info('== focus event');
      }
       
      function OnOpen()
      {
        Ti.API.info('== open event');
      }
       
      MainWin.addEventListener('focus',OnFocus);
      MainWin.addEventListener('open',OnOpen);
      Ti.API.info('== set simple event listeners successfully');
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                bitshftr Shawn Lipscomb
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration