From 45081aab667c377b5d7475e96c6acd1128140100 Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Wed, 20 Aug 2014 13:41:14 -0700 Subject: [PATCH] Updating tizen api checks to avoid failure if they don't exist Change-Id: Ib9974140c6c643c0bac46b603bd6590479f502ae --- js/installedApps.js | 2 +- js/predefAppModel.js | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/js/installedApps.js b/js/installedApps.js index 3509eef..fc743e7 100644 --- a/js/installedApps.js +++ b/js/installedApps.js @@ -247,7 +247,7 @@ function onAppInfoSuccess(list) { **/ evalInstalledApps = function() { "use strict"; - if (typeof tizen !== 'undefined') { + if (typeof (tizen.application.getAppsInfo) !== 'undefined') { try { // get the installed applications list tizen.application.getAppsInfo(onAppInfoSuccess, function(err) { diff --git a/js/predefAppModel.js b/js/predefAppModel.js index d69bb40..62ed157 100644 --- a/js/predefAppModel.js +++ b/js/predefAppModel.js @@ -81,8 +81,8 @@ var areasDefinitions = [ { shape: 'cenerCircle' }, { name: 'navigation', - id: 'xwalk.epacfkhfnnlaamkbaiedmohaeogbedkf', - iconPath: '../navigation/icon.png', + id: 'Modello008.Nav', + iconPath: '../icons/Navigation_icon.png', sectorId: 1, sc: 104, lc: 497, @@ -91,8 +91,8 @@ var areasDefinitions = [ { shape: 'pieWithoutCenter' }, { name: "airconditioning", - id: 'xwalk.fmpbbfhmnlghfghbblcobiiedfbjgegp', - iconPath: '../dashboard/icon.png', + id: 'Modello006.Hvac', + iconPath: '../icons/Dashboard_icon.png', sectorId: 2, sc: 94, //small circle border lc: 437, //large circle border @@ -101,8 +101,8 @@ var areasDefinitions = [ { shape: 'pieWithoutCenter' }, { name: 'MultimediaPlayer', - id: 'xwalk.ilflnmejfmcdcdnjjgejnfbhhbfaaefb', - iconPath: '../musicplayer/icon.png', + id: 'Modello007.Multimediaplayer', + iconPath: '../icons/Multimedia_Player_icon.png', sectorId: 3, sc: 80, lc: 392, @@ -111,8 +111,8 @@ var areasDefinitions = [ { shape: 'pieWithoutCenter' }, { name: 'SmartDeviceLink', - id: 'xwalk.kiefmdieeelkgmnjldgklhlemjdkgpbm', - iconPath: '../smartdevicelink/icon.png', + id: 'Modello010.SDL', + iconPath: '../icons/SmartDeviceLink_icon.png', sectorId: 4, sc: 80, lc: 384, @@ -121,8 +121,8 @@ var areasDefinitions = [ { shape: 'pieWithoutCenter' }, { name: 'phone', - id: 'xwalk.nejoidhifdhhbogkaoimdcalkmllicab', - iconPath: '../phone/icon.png', + id: 'Modello009.Phone', + iconPath: '../apps/Phone_icon.png', sectorId: 5, sc: 82, lc: 364, @@ -131,8 +131,8 @@ var areasDefinitions = [ { shape: 'pieWithoutCenter' }, { name: 'store', - id: 'xwalk.ofalfnmcoplngiipflmdhdegilbfepoh', - iconPath: '../store/icon.png', + id: 'Modello003.AppManager', + iconPath: '../icons/AppManager_icon.png', sectorId: 6, sc: 82, lc: 364, @@ -141,8 +141,8 @@ var areasDefinitions = [ { shape: 'pieWithoutCenter' }, { name: 'dashboard', - id: 'xwalk.knojblgeighiodojgihegbmkbbadfpnk', - iconPath: '../dashboard/icon.png', + id: 'Modello004.Dashboard', + iconPath: '../icons/Dashboard_icon.png', sectorId: 7, sc: 105, lc: 433, -- 2.7.4