diff options
author | Andriy Melnik <AMelnik@luxoft.com> | 2014-10-02 11:57:12 +0300 |
---|---|---|
committer | Andriy Melnik <AMelnik@luxoft.com> | 2014-10-02 11:57:26 +0300 |
commit | 86b75950b02e1f16696ab96557e0285ef3d54426 (patch) | |
tree | a6b9db5abebba08310ab73f5b66838b721d41b01 | |
parent | 68f3086411eb40b50b4ec867de5706ae846d9bec (diff) | |
download | sdl_core-SNAPSHOT_PASA02102014.tar.gz |
APPLINK-8541: GetUsserFriendlyMessage updatesSNAPSHOT_PASA02102014
-rw-r--r-- | src/components/HMI/ffw/BasicCommunicationRPC.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/HMI/ffw/BasicCommunicationRPC.js b/src/components/HMI/ffw/BasicCommunicationRPC.js index 157fc8c328..9614c125c4 100644 --- a/src/components/HMI/ffw/BasicCommunicationRPC.js +++ b/src/components/HMI/ffw/BasicCommunicationRPC.js @@ -316,6 +316,24 @@ FFW.BasicCommunication = FFW.RPCObserver if (notification.method == this.onStatusUpdateNotification) { SDL.TTSPopUp.ActivateTTS(notification.params.status); + + var messageCode = ''; + switch(notification.params.status){ + case "UP_TO_DATE":{ + messageCode = "StatusUpToDate"; + break; + } + case "UPDATING":{ + messageCode = "StatusPending"; + break; + } + case "UPDATE_NEEDED":{ + messageCode = "StatusNeeded"; + break; + } + } + + FFW.BasicCommunication.GetUserFriendlyMessage(SDL.SettingsController.simpleParseUserFriendlyMessageData, SDL.SDLAppController.model?SDL.SDLAppController.model.appID:null, [messageCode]); } if (notification.method == this.onAppPermissionChangedNotification) { |