Merge "Camera: Clarify JNI exception message" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8d47bc97e6
@@ -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());
|
ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get());
|
||||||
if (camera == 0) {
|
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;
|
if (pContext != NULL) *pContext = context;
|
||||||
|
|||||||
Reference in New Issue
Block a user