From 161080c0291d978ed43f11c7b8939fee5fb17e06 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Wed, 17 Sep 2014 19:12:04 +0900 Subject: [PATCH] Fix tests. Looper.prepare() is not called automatically for us any more. Bug: 17518123 Change-Id: I2fb6caa4ef79ce7ed86ff58518f4b000483e508f --- tests/src/com/android/inputmethod/latin/InputTestsBase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index d7a649a5b..6860bea45 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -183,6 +183,9 @@ public class InputTestsBase extends ServiceTestCase { | InputType.TYPE_TEXT_FLAG_MULTI_LINE; mEditText.setInputType(inputType); mEditText.setEnabled(true); + if (null == Looper.myLooper()) { + Looper.prepare(); + } setupService(); mLatinIME = getService(); setDebugMode(true);