Skip to content

Commit 404b05a

Browse files
committed
Convert field inputOptionsBits to local
1 parent f1a9455 commit 404b05a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/io/github/yawnoc/strokeinput/StrokeInputService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ public class StrokeInputService
150150
private List<String> candidateList = new ArrayList<>();
151151
private final List<Integer> phraseCompletionFirstCodePointList = new ArrayList<>();
152152

153-
private int inputOptionsBits;
154153
private int inputActionsBits;
155154
private boolean enterKeyHasAction;
156155
private boolean inputIsPassword;
@@ -367,7 +366,7 @@ public void onStartInput(final EditorInfo editorInfo, final boolean isRestarting
367366
{
368367
super.onStartInput(editorInfo, isRestarting);
369368

370-
inputOptionsBits = editorInfo.imeOptions;
369+
final int inputOptionsBits = editorInfo.imeOptions;
371370
inputActionsBits = inputOptionsBits & EditorInfo.IME_MASK_ACTION;
372371
enterKeyHasAction = (inputOptionsBits & EditorInfo.IME_FLAG_NO_ENTER_ACTION) == 0;
373372

0 commit comments

Comments
 (0)