Ims: Send user selected TTY mode to lower layers.
Shriram Ganesh [Thu, 14 Aug 2014 08:48:57 +0000 (13:48 +0530)]
Irrespective of whether TTY device is connected or not
send TTY mode setting to modem whenever user changes it
from settings.

Change-Id: I1b6cf0a68f02da1faf438d89e70591037b9d9651

src/java/com/android/ims/ImsManager.java

index 24609d0..95a599c 100644 (file)
@@ -502,6 +502,19 @@ public class ImsManager {
         return mConfig;
     }
 
+    public void setUiTTYMode(int serviceId, int uiTtyMode, Message onComplete)
+            throws ImsException {
+
+       checkAndThrowExceptionIfServiceUnavailable();
+
+       try {
+           mImsService.setUiTTYMode(serviceId, uiTtyMode, onComplete);
+       } catch (RemoteException e) {
+           throw new ImsException("setTTYMode()", e,
+                   ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN);
+       }
+    }
+
     /**
      * Gets the call ID from the specified incoming call broadcast intent.
      *