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

Commit 5701a664 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Use WordComposer.addKeyInfo for testing

Change-Id: I500654e7a26717aa5547942357e56060afb72969
parent da348e11
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.inputmethod.latin;

import com.android.inputmethod.annotations.UsedForTesting;
import com.android.inputmethod.keyboard.Key;
import com.android.inputmethod.keyboard.Keyboard;

@@ -177,7 +178,8 @@ public final class WordComposer {
    /**
     * Internal method to retrieve reasonable proximity info for a character.
     */
    private void addKeyInfo(final int codePoint, final Keyboard keyboard) {
    @UsedForTesting
    public void addKeyInfo(final int codePoint, final Keyboard keyboard) {
        final int x, y;
        final Key key;
        if (keyboard != null && (key = keyboard.getKey(codePoint)) != null) {