*/
onBackButtonClick: function () {
BottomPanel.thisObj.trigger("clickOnBackButton");
- if (typeof tizen !== "undefined") {
+ if (typeof (tizen.application.getCurrentApplication) !== "undefined") {
tizen.application.getCurrentApplication().exit();
}
}
*/
init: function() {
TopBarIcons.initLaunchingAppsByVoiceRecognition();
- TopBarIcons.runningAppName = typeof(tizen) === 'undefined' ? "" : tizen.application.getCurrentApplication().appInfo.id;
+ TopBarIcons.runningAppName = typeof(tizen.application.getCurrentApplication) === 'undefined' ? "" : tizen.application.getCurrentApplication().appInfo.id;
this.empty();
this.addClass("topBarIcons");
_getApps: function() {
try {
- if (typeof(tizen) !== 'undefined') {
+ if (typeof(tizen.application.getAppsInfo) !== 'undefined') {
tizen.application.getAppsInfo(TopBarIcons.onAppInfoSuccess, function(err) {
// Workaround due to https://bugs.tizen.org/jira/browse/TIVI-2018
window.setTimeout(function() {
Speech.prototype._initVoiceRecognition = function() {
var self = this;
console.log("Speech init voice recognition called.");
- if (typeof (tizen) !== 'undefined' && typeof (tizen.speech) !== 'undefined' && typeof (tizen.speech.setCBListener) !== 'undefined') {
+ if (typeof (tizen.speech.setCBListener) !== 'undefined') {
try {
-
tizen.speech.setCBListener(function(result) {
console.log("Speech: onresult received");
for ( var i = 0; i < result.length; i++) {
*/
Speech.prototype.vocalizeString = function(string) {
console.log("Speech vocalize string called.");
- if (typeof (tizen) !== 'undefined' && typeof (tizen.speech) !== 'undefined' && typeof (tizen.speech.vocalizeString) !== 'undefined') {
+ if (typeof (tizen.speech.vocalizeString) !== 'undefined') {
try {
tizen.speech.vocalizeString(string);
} catch (err) {
* @method readCurrentAppName
*/
Speech.prototype.readCurrentAppName = function() {
- if (typeof (tizen) !== 'undefined') {
+ if (typeof (tizen.application.getCurrentApplication) !== 'undefined') {
var appName = tizen.application.getCurrentApplication().appInfo.name.toString().trim().toLowerCase();
if (appName === "modello hvac") {
appName = "air conditioning";
+* Wed Aug 20 2014 Brian Jones <brian.j.jones@intel.com> accepted/tizen/ivi/20140814.201957-2-g5b6386a
+- Updating tizen api checks to avoid failure if they don't exist
+
* Thu Aug 14 2014 Jimmy Huang <jimmy.huang@intel.com> accepted/tizen/ivi/20140814.201957-1-g4c3a4b4
- Clear the cached bluetooth devices due to UI bug