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

Commit d6c947ef authored by Yuichiro Hanada's avatar Yuichiro Hanada
Browse files

Change GET_SUGGESTED_WORDS_TIMEOUT to 50.

Change-Id: I4d495a782ed1dea1c377837c6579ce5ff74086b5
parent c6cfa6c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen

    private static final int PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT = 2;

    private static final int GET_SUGGESTED_WORDS_TIMEOUT = 500;
    private static final int GET_SUGGESTED_WORDS_TIMEOUT = 50;

    /**
     * The name of the scheme used by the Package Manager to warn of a new package installation,
@@ -2396,6 +2396,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
                }
        );

        // TODO: Quit blocking the main thread.
        try {
            // Wait for the result of getSuggestedWords
            // We set the time out to avoid ANR.