Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 024ede02 authored by Cosmin Băieș's avatar Cosmin Băieș Committed by Automerger Merge Worker
Browse files

Merge "Ensure waitOnMainUntil runs on the main thread" into udc-qpr-dev am: 08497eca

parents 93123c38 08497eca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ public final class ImeStressTestUtil {
     * <p>The given {@code pred} will be called on the main thread.
     */
    public static void waitOnMainUntil(String message, Callable<Boolean> pred) {
        eventually(() -> assertWithMessage(message).that(pred.call()).isTrue(), TIMEOUT);
        eventually(() -> assertWithMessage(message).that(callOnMainSync(pred)).isTrue(), TIMEOUT);
    }

    /** Waits until IME is shown, or throws on timeout. */