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

Android:Tabgroup:Focus and Blur event listeners for a tabgroup are not getting called.

    Details

      Description

      It is a regression.Not occurring over 2.0.2,2.0.1 and 1.8.2.

      Refer the code below:

      var tabGroup = Ti.UI.createTabGroup();
       
      var win1 = Ti.UI.createWindow({
      	name: "win 1"
      });
      var tab1 = Ti.UI.createTab({
      	name: "Tab 1",
      	title:'Tab 1',
      	window:win1
      });
       
      var win2 = Ti.UI.createWindow({
      	name: "win 2",
      	title:'Tab 2',
      	backgroundColor:'#fff'
      });
      var tab2 = Ti.UI.createTab({
      	name: "Tab 2",
      	title:'Tab 2',
      	window:win2
      });
       
      tabGroup.addTab(tab1);
      tabGroup.addTab(tab2);
       
      tabGroup.addEventListener('focus', function(e){
      	Ti.API.info('-------------> this is focus of tabgroup');
      	Ti.API.info('-------------> tabGroup focus event fired! - ' + e.source.name);
      });
      tab1.addEventListener('focus', function(e){
      	Ti.API.info('-------------> this is focus of tab 1');
      	Ti.API.info('-------------> tab1 focus event fired! - ' + e.source.name);
      });
      tab2.addEventListener('focus', function(e){
      	Ti.API.info('-------------> this is focus of tab 2');
      	Ti.API.info('-------------> tab2 focus event fired! - ' + e.source.name);
      });
      win1.addEventListener('focus', function(e){
      	Ti.API.info('-------------> this is focus of win 1');
      	Ti.API.info('-------------> win1 focus event fired! - ' + e.source.name);
      });
      win2.addEventListener('focus', function(e){
      	Ti.API.info('-------------> this is focus of win 2');
      	Ti.API.info('-------------> win2 focus event fired! - ' + e.source.name);
      });
       
      tab1.addEventListener('blur', function(e){
      	Ti.API.info('-------------> this is blur of tab 1');
      	Ti.API.info('**************> tab1 blur event fired! - ' + e.source.name);
      });
      tab2.addEventListener('blur', function(e){
      	Ti.API.info('-------------> this is blur of tab 2');
      	Ti.API.info('**************> tab2 blur event fired! - ' + e.source.name);
      });
      win1.addEventListener('blur', function(e){
      	Ti.API.info('-------------> this is blur of win 1');
      	Ti.API.info('**************> win1 blur event fired! - ' + e.source.name);
      });
      win2.addEventListener('blur', function(e){
      	Ti.API.info('-------------> this is blur of win 2');
      	Ti.API.info('**************> win2 blur event fired! - ' + e.source.name);
      });
       
      tabGroup.open();
      

      Issue -> The focus and blur events of tabgroup are not getting called.
      Attached are the log traces of SDKs 2.0.2 and 2.1.0.

        Attachments

          Activity

            People

            • Assignee:
              joshroesslein Josh Roesslein
              Reporter:
              sbhadauria Shyam Bhadauria
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration