All pastes #1719520 Raw Edit

Hold-Button-answer-speaker

public diff v1 · immutable
#1719520 ·published 2009-12-18 15:27 UTC
rendered paste body
--- .orig/usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.js+++ /usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.js@@ -68,6 +68,7 @@ 		 		try { 			this.sceneCtrl.get('answer_button').addEventListener(Mojo.Event.tap, this.answerCall.bindAsEventListener(this));+			this.sceneCtrl.get('answer_button').addEventListener(Mojo.Event.hold, this.answerCallspeaker.bindAsEventListener(this)); 			this.sceneCtrl.get('reject_button').addEventListener(Mojo.Event.tap, this.rejectCall.bindAsEventListener(this)); 			 	        this.exposed = true;@@ -420,7 +423,10 @@ 		TelephonyCommands.answer(this.callId);         this.onAnswered();     },-    +    answerCallspeaker: function() {	+		this.answerCall(); +		TelephonyCommands.setAudioScenario("phone_back_speaker");+    }, 	// hide alert and instruct blur handler to disconnect call & show ignored UI 	rejectCall: function(event){         if (this.blockIgnore) {\ No newline at end of file