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

Commit 1334a6f3 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Android Git Automerger
Browse files

am 8d47bc97: Merge "Camera: Clarify JNI exception message" into lmp-mr1-dev

* commit '8d47bc97':
  Camera: Clarify JNI exception message
parents b47cf562 8d47bc97
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -133,7 +133,8 @@ sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pCont
    }
    ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get());
    if (camera == 0) {
        jniThrowRuntimeException(env, "Method called after release()");
        jniThrowRuntimeException(env,
                "Camera is being used after Camera.release() was called");
    }

    if (pContext != NULL) *pContext = context;