Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (3.4.0)
Viewing all articles
Browse latest Browse all 66

Update Tab Group Focus Not Working

$
0
0

Hi All,

I seem to have a issue that existed before was fixed but seems to be happening again with the new update 3.4.0

I have a tabgroup in most of my apps and i notice some weird behaviour after the upgrade and it is because the focus event is no longer being called on my tabgroup windows when they open. Is this supposed to happening with the new update? if so ill have to find another way to build my apps without the focus.

Simple setup below.

var tabGroup = Ti.UI.createTabGroup({});
 
    var homeWindow = Ti.UI.createWindow({
        url : 'ui/tab1.js'
    });
And in my tab1.js i have the following
var self = Ti.UI.currentWindow;
self.addEventListener('focus', function(evt) {
    if (Titanium.App.Properties.getInt('logme') === 0) {
        loginView.visible = true;
        logoutView.visible = false;
    } else {
        logoutView.visible = true;
        loginView.visible = false;
    }
});
It worked with previous versions but focus is no longer called onload, i cant build with 3.3.0 because i have updated everything.

Any help pls


Viewing all articles
Browse latest Browse all 66

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>