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

This commit is contained in:
Eino-Ville Talvala
2015-01-15 20:00:01 +00:00
committed by Android (Google) Code Review

View File

@@ -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;