mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Use WordComposer.addKeyInfo for testing"
This commit is contained in:
commit
07296cf7ff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user