aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputTestsBase.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-10-10 20:22:53 +0900
committerJean Chalard <jchalard@google.com>2012-10-10 20:22:53 +0900
commit6ae5e45118ecc7bc29fe4050286055ba30d144cd (patch)
treed29ee126f3baa6caa56faca09f99f91df734099f /tests/src/com/android/inputmethod/latin/InputTestsBase.java
parent2752287c425b9be87800136bd616ee63940caaac (diff)
downloadlatinime-6ae5e45118ecc7bc29fe4050286055ba30d144cd.tar.gz
latinime-6ae5e45118ecc7bc29fe4050286055ba30d144cd.tar.xz
latinime-6ae5e45118ecc7bc29fe4050286055ba30d144cd.zip
Stop using private APIs in tests.
Not sure it's much better, but at least this is public. Bug: 6202480 Change-Id: If6cda78fbd32cfb068e0b2fcb637914939b044b3
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java2
1 files changed, 1 insertions, 1 deletions
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<LatinIME> {
// 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.