From 6ae5e45118ecc7bc29fe4050286055ba30d144cd Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Wed, 10 Oct 2012 20:22:53 +0900 Subject: [PATCH] Stop using private APIs in tests. Not sure it's much better, but at least this is public. Bug: 6202480 Change-Id: If6cda78fbd32cfb068e0b2fcb637914939b044b3 --- tests/src/com/android/inputmethod/latin/InputTestsBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index f7308a845..eb5002059 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -212,7 +212,7 @@ public class InputTestsBase extends ServiceTestCase { // any subsequent post in this queue. However the queue itself is still fully functional! // If we have a way of resetting "queue.mQuiting" then we can continue using it as normal, // coming back to this method to run the messages. - MessageQueue queue = looper.getQueue(); + MessageQueue queue = Looper.myQueue(); try { // However there is no way of doing it externally, and mQuiting is private. // So... get out the big guns.