33import android .content .Context ;
44import android .database .Cursor ;
55import android .database .sqlite .SQLiteDatabase ;
6- import android .util .Log ;
76import android .inputmethodservice .Keyboard .Key ;
7+ import android .util .Log ;
8+
9+ import androidx .annotation .NonNull ;
10+ import androidx .annotation .Nullable ;
811
912import com .readystatesoftware .sqliteasset .SQLiteAssetHelper ;
1013
2124import java .util .Map ;
2225import java .util .regex .Pattern ;
2326
24- import androidx .annotation .NonNull ;
25- import androidx .annotation .Nullable ;
26-
2727import jp .co .omronsoft .openwnn .ComposingText ;
2828import jp .co .omronsoft .openwnn .SymbolList ;
2929import jp .co .omronsoft .openwnn .WnnWord ;
@@ -229,7 +229,7 @@ private List<Words> getDisplays(String aKey) {
229229 // Allow completion of uppercase/lowercase letters numbers, and symbols
230230 // aKey.length() > 1 only happens when switching from other keyboard.
231231 if (aKey .matches (nonZhuyinReg ) ||
232- (aKey .length () > 1 && mKeymaps .size () == 0 )) {
232+ (aKey .length () > 1 && mKeymaps .size () == 0 )) {
233233 return Collections .singletonList (new Words (1 , aKey , aKey ));
234234 }
235235
@@ -248,9 +248,9 @@ private List<Words> getDisplays(String aKey) {
248248 final String lastChar = "" + aKey .charAt (aKey .length ()-1 );
249249 if (map != null && lastChar .matches (nonZhuyinReg ))
250250 {
251- Words word = map .displays .get (0 );
252- return Collections .singletonList (new Words (1 ,
253- word .code + lastChar , word .value + lastChar ));
251+ Words word = map .displays .get (0 );
252+ return Collections .singletonList (new Words (1 ,
253+ word .code + lastChar , word .value + lastChar ));
254254 }
255255 return map .displays ;
256256 }
0 commit comments