summaryrefslogtreecommitdiffstats
path: root/telecomm
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-07-18 16:48:46 -0700
committerAndrew Lee <anwlee@google.com>2014-07-21 12:03:16 -0700
commit054c6d965f266c1bba3609dac70521379687dd28 (patch)
tree51b15e961e5703e28e74b91bb1403e1afb65ab05 /telecomm
parentd1c344e412ba927db0276d37f7a42362aa2966b0 (diff)
downloadframeworks_base-054c6d965f266c1bba3609dac70521379687dd28.zip
frameworks_base-054c6d965f266c1bba3609dac70521379687dd28.tar.gz
frameworks_base-054c6d965f266c1bba3609dac70521379687dd28.tar.bz2
Catch RemoteException when setting the camera or zoom.
Bug: 16014280 Change-Id: I7542a0f294929fac589260ab596730d89948c89e
Diffstat (limited to 'telecomm')
-rw-r--r--telecomm/java/android/telecomm/RemoteCallVideoProvider.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/telecomm/java/android/telecomm/RemoteCallVideoProvider.java b/telecomm/java/android/telecomm/RemoteCallVideoProvider.java
index 170cf04..b8b8b9d 100644
--- a/telecomm/java/android/telecomm/RemoteCallVideoProvider.java
+++ b/telecomm/java/android/telecomm/RemoteCallVideoProvider.java
@@ -59,8 +59,11 @@ public class RemoteCallVideoProvider {
*
* @param cameraId The id of the camera.
*/
- public void setCamera(String cameraId) throws RemoteException {
- mCallVideoProvider.setCamera(cameraId);
+ public void setCamera(String cameraId) {
+ try {
+ mCallVideoProvider.setCamera(cameraId);
+ } catch (RemoteException e) {
+ }
}
/**
@@ -107,8 +110,11 @@ public class RemoteCallVideoProvider {
*
* @param value The camera zoom ratio.
*/
- public void setZoom(float value) throws RemoteException {
- mCallVideoProvider.setZoom(value);
+ public void setZoom(float value) {
+ try {
+ mCallVideoProvider.setZoom(value);
+ } catch (RemoteException e) {
+ }
}
/**