Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 054c6d96 authored by Andrew Lee's avatar Andrew Lee
Browse files

Catch RemoteException when setting the camera or zoom.

Bug: 16014280
Change-Id: I7542a0f294929fac589260ab596730d89948c89e
parent d1c344e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28618,12 +28618,12 @@ package android.telecomm {
    method public void sendSessionModifyRequest(android.telecomm.VideoCallProfile);
    method public void sendSessionModifyResponse(android.telecomm.VideoCallProfile);
    method public void setCallVideoClient(android.telecomm.CallVideoClient);
    method public void setCamera(java.lang.String) throws android.os.RemoteException;
    method public void setCamera(java.lang.String);
    method public void setDeviceOrientation(int);
    method public void setDisplaySurface(android.view.Surface);
    method public void setPauseImage(java.lang.String);
    method public void setPreviewSurface(android.view.Surface);
    method public void setZoom(float) throws android.os.RemoteException;
    method public void setZoom(float);
  }
  public final class RemoteConnection {
+10 −4
Original line number Diff line number Diff line
@@ -59,8 +59,11 @@ public class RemoteCallVideoProvider {
     *
     * @param cameraId The id of the camera.
     */
    public void setCamera(String cameraId) throws RemoteException {
    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 {
    public void setZoom(float value) {
        try {
            mCallVideoProvider.setZoom(value);
        } catch (RemoteException e) {
        }
    }

    /**