summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Melnik <AMelnik@luxoft.com>2014-10-02 11:57:12 +0300
committerAndriy Melnik <AMelnik@luxoft.com>2014-10-02 11:57:26 +0300
commit86b75950b02e1f16696ab96557e0285ef3d54426 (patch)
treea6b9db5abebba08310ab73f5b66838b721d41b01
parent68f3086411eb40b50b4ec867de5706ae846d9bec (diff)
downloadsdl_core-SNAPSHOT_PASA02102014.tar.gz
APPLINK-8541: GetUsserFriendlyMessage updatesSNAPSHOT_PASA02102014
-rw-r--r--src/components/HMI/ffw/BasicCommunicationRPC.js18
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) {