Change-Id: If9d31a8c71da4a723cf48cff77a710cf641753c8
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
/* if app is phone */
} else {
if (typeof(tizen) !== 'undefined' && tizen.phone) {
- acceptCall(tizen.phone.activeCall.contact);
+ var activeCall = tizen.phone.activeCall();
+ acceptCall(activeCall.contact);
}
}
};
console.log(result.message);
});
}
-};
\ No newline at end of file
+};
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 */
}]
setInterval(function() {
Configuration.reload();
}, 1000);
-};
\ No newline at end of file
+};