summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-01-15 20:00:01 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-15 20:00:02 +0000
commit8d47bc97e642cd0d0caf31d09efe05d8dc233f27 (patch)
tree5a318dd911f48476188fd48fcb37906b6bef9e63
parente184b2f2355e572fa67e748e625e4eea0ac29201 (diff)
parentf9133347492a662a89f2aeaf977b60a048d2b647 (diff)
downloadframeworks_base-8d47bc97e642cd0d0caf31d09efe05d8dc233f27.zip
frameworks_base-8d47bc97e642cd0d0caf31d09efe05d8dc233f27.tar.gz
frameworks_base-8d47bc97e642cd0d0caf31d09efe05d8dc233f27.tar.bz2
Merge "Camera: Clarify JNI exception message" into lmp-mr1-dev
-rw-r--r--core/jni/android_hardware_Camera.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/jni/android_hardware_Camera.cpp b/core/jni/android_hardware_Camera.cpp
index 4cff56d..69f46d3 100644
--- a/core/jni/android_hardware_Camera.cpp
+++ b/core/jni/android_hardware_Camera.cpp
@@ -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;