diff options
author | Andrew Lee <anwlee@google.com> | 2014-07-18 16:48:46 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-07-21 12:03:16 -0700 |
commit | 054c6d965f266c1bba3609dac70521379687dd28 (patch) | |
tree | 51b15e961e5703e28e74b91bb1403e1afb65ab05 /telecomm | |
parent | d1c344e412ba927db0276d37f7a42362aa2966b0 (diff) | |
download | frameworks_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.java | 14 |
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) { + } } /** |