mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Make a method accessible for tests
Tests are using a wrapper method that's going to disappear soon. The method that becomes package-visible now is destined to be removed too a little later. Change-Id: If99b1c77ed52e050b47216cc7afab5f35c4bbb38
This commit is contained in:
parent
2de0c4b754
commit
9dedec7c29
@ -122,7 +122,8 @@ public class SuggestedWords {
|
|||||||
return addWord(word, info);
|
return addWord(word, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) {
|
/* package for tests */
|
||||||
|
Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) {
|
||||||
if (!TextUtils.isEmpty(word)) {
|
if (!TextUtils.isEmpty(word)) {
|
||||||
mWords.add(word);
|
mWords.add(word);
|
||||||
// It's okay if suggestedWordInfo is null since it's checked where it's used.
|
// It's okay if suggestedWordInfo is null since it's checked where it's used.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user