summaryrefslogtreecommitdiff
path: root/src/components/HMI/app/controller/SettingsController.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HMI/app/controller/SettingsController.js')
-rw-r--r--src/components/HMI/app/controller/SettingsController.js25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/components/HMI/app/controller/SettingsController.js b/src/components/HMI/app/controller/SettingsController.js
index e8f7c84653..a9a5d1a004 100644
--- a/src/components/HMI/app/controller/SettingsController.js
+++ b/src/components/HMI/app/controller/SettingsController.js
@@ -64,9 +64,32 @@ SDL.SettingsController = Em.Object.create( {
},
phoneCall: function() {
+
+ FFW.BasicCommunication.OnPhoneCall(true);
+
+ SDL.SDLModel.phoneCallActive = true;
+
+ var appID = null;
+
if (SDL.SDLAppController.model) {
- SDL.SDLModel.onDeactivateApp('call', SDL.SDLAppController.model.appID);
+ appID = SDL.SDLAppController.model.appID;
+ }
+
+
+ if (appID) {
+ SDL.SDLModel.onDeactivateApp('call', appID);
SDL.States.goToStates('phone.dialpad');
+
+ setTimeout(function () {
+ FFW.BasicCommunication.OnPhoneCall(false);
+ SDL.SDLController.getApplicationModel(appID).turnOnSDL(appID);
+ SDL.SDLModel.phoneCallActive = false;
+ }, 5000); //Magic number - 5 seconds timeout for emulating conversation call
+ } else {
+ setTimeout(function () {
+ FFW.BasicCommunication.OnPhoneCall(false);
+ SDL.SDLModel.phoneCallActive = false;
+ }, 5000); //Magic number - 5 seconds timeout for emulating conversation call
}
},