Add hold command to CallCommandService.
Change-Id: I7c4e28e868dfb7b12fe0c8568ed12e3c85529cc1
diff --git a/src/com/android/phone/CallCommandService.java b/src/com/android/phone/CallCommandService.java
index 6a0ef2f..ff12063 100644
--- a/src/com/android/phone/CallCommandService.java
+++ b/src/com/android/phone/CallCommandService.java
@@ -75,6 +75,16 @@
}
@Override
+ public void hold(int callId, boolean hold) {
+ try {
+ // TODO(klp): Change to use the callId/hold
+ PhoneUtils.switchHoldingAndActive(mCallManager.getFirstActiveBgCall());
+ } catch (Exception e) {
+ Log.e(TAG, "Error trying to place call on hold.", e);
+ }
+ }
+
+ @Override
public void mute(boolean onOff) {
try {
PhoneUtils.setMute(onOff);