You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using com.alcoapps.actionbarextras(1.7.3) module with Titanium SDK 6.1.1GA and I am getting error (attached file). When I use this module with SDK 6.0.1GA, it is working fine. Could you please let me know, what to do. Here is my cosde
LG - 6.1.1GA- Back Button- ERROR.docx
var actionBarModule = require('com.alcoapps.actionbarextras');
self.addEventListener('open', function(){
// console.log(" in session.js self.addEventListener - open ");
//runActivityTracker();
if (rt.isAndroid) {
actionBarModule.setDisableIcon(false);
actionBarModule.setTitle({
text: '',
font: {
fontSize: text_font_size_h4,
fontFamily: 'OpenSans-Semibold'
},
color: color_val_blue1
});
actionBarModule.setTitleFont('OpenSans-Semibold');
actionBarModule.setBackgroundColor(color_val_gray);
var activity = self.getActivity();
if (activity) {
var actionBar = activity.getActionBar();
activity.onCreateOptionsMenu = function(e) {
var menu = e.menu, menuFinishButton;
// console.log(" activity.onCreateOptionsMenu " + JSON.stringify(e));
menu.clear();
menuFinishButton = menu.add({
title: 'Finish',
showAsAction: Ti.Android.SHOW_AS_ACTION_ALWAYS
});
menuFinishButton.clickTime = null;
menuFinishButton.addEventListener('click',finishMethod);
};
activity.actionBar.displayHomeAsUp = true;
activity.actionBar.onHomeIconItemSelected = function() {
//console.log( " in session activity.actionBar.onHomeIconItemSelected ");
self.fireEvent('CloseManual');
self.close();
};
activity.invalidateOptionsMenu();
}
}
});
The text was updated successfully, but these errors were encountered:
Hello,
I am using com.alcoapps.actionbarextras(1.7.3) module with Titanium SDK 6.1.1GA and I am getting error (attached file). When I use this module with SDK 6.0.1GA, it is working fine. Could you please let me know, what to do. Here is my cosde
LG - 6.1.1GA- Back Button- ERROR.docx
var actionBarModule = require('com.alcoapps.actionbarextras');
self.addEventListener('open', function(){
// console.log(" in session.js self.addEventListener - open ");
//runActivityTracker();
if (rt.isAndroid) {
actionBarModule.setDisableIcon(false);
actionBarModule.setTitle({
text: '',
font: {
fontSize: text_font_size_h4,
fontFamily: 'OpenSans-Semibold'
},
color: color_val_blue1
});
actionBarModule.setTitleFont('OpenSans-Semibold');
actionBarModule.setBackgroundColor(color_val_gray);
var activity = self.getActivity();
if (activity) {
var actionBar = activity.getActionBar();
activity.onCreateOptionsMenu = function(e) {
var menu = e.menu, menuFinishButton;
// console.log(" activity.onCreateOptionsMenu " + JSON.stringify(e));
menu.clear();
menuFinishButton = menu.add({
title: 'Finish',
showAsAction: Ti.Android.SHOW_AS_ACTION_ALWAYS
});
menuFinishButton.clickTime = null;
menuFinishButton.addEventListener('click',finishMethod);
};
activity.actionBar.displayHomeAsUp = true;
activity.actionBar.onHomeIconItemSelected = function() {
//console.log( " in session activity.actionBar.onHomeIconItemSelected ");
self.fireEvent('CloseManual');
self.close();
};
activity.invalidateOptionsMenu();
}
}
});
The text was updated successfully, but these errors were encountered: