summaryrefslogtreecommitdiffstats
path: root/services/jni/com_android_server_input_InputManagerService.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-04-06 18:26:48 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-06 18:26:48 -0700
commit12578bde993ff907ce285a68db34ad6c5756c5b0 (patch)
treea6a55e2197ed3efc715ac2e61536c84194e3dbd0 /services/jni/com_android_server_input_InputManagerService.cpp
parentcd837070f64a7dffb5e78b37763da63c01600ebf (diff)
parent603b44589682db3ff33ade172facb0c5e309f1be (diff)
downloadframeworks_base-12578bde993ff907ce285a68db34ad6c5756c5b0.zip
frameworks_base-12578bde993ff907ce285a68db34ad6c5756c5b0.tar.gz
frameworks_base-12578bde993ff907ce285a68db34ad6c5756c5b0.tar.bz2
Merge "Ensure that apps crash if they throw exceptions."
Diffstat (limited to 'services/jni/com_android_server_input_InputManagerService.cpp')
-rw-r--r--services/jni/com_android_server_input_InputManagerService.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/jni/com_android_server_input_InputManagerService.cpp b/services/jni/com_android_server_input_InputManagerService.cpp
index c57402f..75c20f3 100644
--- a/services/jni/com_android_server_input_InputManagerService.cpp
+++ b/services/jni/com_android_server_input_InputManagerService.cpp
@@ -950,8 +950,9 @@ void NativeInputManager::loadPointerResources(PointerResources* outResources) {
static jint nativeInit(JNIEnv* env, jclass clazz,
jobject serviceObj, jobject contextObj, jobject messageQueueObj) {
- sp<Looper> looper = android_os_MessageQueue_getLooper(env, messageQueueObj);
- NativeInputManager* im = new NativeInputManager(contextObj, serviceObj, looper);
+ sp<MessageQueue> messageQueue = android_os_MessageQueue_getMessageQueue(env, messageQueueObj);
+ NativeInputManager* im = new NativeInputManager(contextObj, serviceObj,
+ messageQueue->getLooper());
im->incStrong(serviceObj);
return reinterpret_cast<jint>(im);
}