diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-05-06 22:06:07 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-05-06 22:06:07 -0400 |
commit | 100d98e3ff6798ce2e2a8f1f97b8b24de1e20168 (patch) | |
tree | be5ed79c9a8103720e8237f31676420855794ce5 | |
parent | 5730e7768e605990191f0c5803b3358191cb1ea1 (diff) | |
parent | f27edb06cae88115d1ee6c122a15ec750e8db5f0 (diff) |
Merge branch 'master' of https://github.com/AndrewMurrell/minak
-rw-r--r-- | src/us/minak/IMEService.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/us/minak/IMEService.java b/src/us/minak/IMEService.java index 21bd159..ae12bc2 100644 --- a/src/us/minak/IMEService.java +++ b/src/us/minak/IMEService.java @@ -22,20 +22,20 @@ import android.view.inputmethod.EditorInfo; * Represent the application input service. */ public class IMEService extends InputMethodService { - private IMEView mPenboardView; + private IMEView mIMEView; @Override public View onCreateInputView() { - final IMEView penboardView = (IMEView) getLayoutInflater().inflate(R.layout.ime, null); + final IMEView minakView = (IMEView) getLayoutInflater().inflate(R.layout.ime, null); - penboardView.setOnCharacterEnteredListener(new StringReciever() { + minakView.setOnCharacterEnteredListener(new StringReciever() { @Override public void putString(String character) { getCurrentInputConnection().commitText(character, 1); } }); - penboardView.setOnBackspacePressedListener(new OnBackspacePressedListener() { + minakView.setOnBackspacePressedListener(new OnBackspacePressedListener() { @Override public void backspacePressed(boolean isLongClick) { if (isLongClick) { @@ -46,14 +46,14 @@ public class IMEService extends InputMethodService { } }); - mPenboardView = penboardView; - return penboardView; + mIMEView = minakView; + return minakView; } @Override public void onStartInput(EditorInfo attribute, boolean restarting) { - if (mPenboardView != null) { - final Queue<Character> symbolsQueue = mPenboardView.getSymbolsQueue(); + if (mIMEView != null) { + final Queue<Character> symbolsQueue = mIMEView.getSymbolsQueue(); while (!symbolsQueue.isEmpty()) { final Character character = symbolsQueue.poll(); getCurrentInputConnection().commitText(String.valueOf(character), 1); |