Change activeCall attribute to use the activeCall() api 88/22288/1
authorJimmy Huang <jimmy.huang@intel.com>
Fri, 30 May 2014 21:34:22 +0000 (14:34 -0700)
committerJimmy Huang <jimmy.huang@intel.com>
Fri, 30 May 2014 21:34:22 +0000 (14:34 -0700)
Change-Id: If9d31a8c71da4a723cf48cff77a710cf641753c8
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
css/car/components/incomingCall/incomingCall.js
js/services/bootstrap.js

index 37710c4..ca3a6b6 100644 (file)
@@ -97,7 +97,8 @@ IncomingCall.prototype.acceptIncommingCall = function() {
                /* if app is phone */
        } else {
                if (typeof(tizen) !== 'undefined' && tizen.phone) {
-                       acceptCall(tizen.phone.activeCall.contact);
+                       var activeCall = tizen.phone.activeCall();
+                       acceptCall(activeCall.contact);
                }
        }
 };
@@ -114,4 +115,4 @@ IncomingCall.prototype.denyCall = function() {
                        console.log(result.message);
                });
        }
-};
\ No newline at end of file
+};
index db47fb0..645e910 100644 (file)
@@ -154,13 +154,14 @@ Bootstrap.prototype.initIncomingCall = function(callback) {
                                                                var appId = getAppByID('intelPoc15.phone');
 
                                                                var contact;
+                                                               var activeCall = tizen.phone.activeCall();
                                                                if (!!result.contact.name) {
                                                                        contact = result.contact;
                                                                } else {
                                                                        contact = {
                                                                                phoneNumbers: [{
                                                                                        /* jshint camelcase: false */
-                                                                                       number: tizen.phone.activeCall.line_id
+                                                                                       number: activeCall.line_id
                                                                                        /* jshint camelcase: true */
                                                                                }]
 
@@ -233,4 +234,4 @@ Bootstrap.prototype.reload = function() {
        setInterval(function() {
                Configuration.reload();
        }, 1000);
-};
\ No newline at end of file
+};