diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-05-05 16:06:02 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-05-05 16:06:02 -0400 |
commit | 181991a85c528d4c5cec66303f677285d38d2b97 (patch) | |
tree | eea9d8ed946fb0d49e2bee84853932217856d459 /src/us/minak/IMEService.java | |
parent | a7b6d856a146d2d576885001cc2154304a156efe (diff) |
Perhaps our problem is that the Symbol Activity didn't do what we thought it did or had some other side effects. I added a file to experiment with that and added minor changes elsewhere.
Diffstat (limited to 'src/us/minak/IMEService.java')
-rw-r--r-- | src/us/minak/IMEService.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/us/minak/IMEService.java b/src/us/minak/IMEService.java index 6064be9..86c7864 100644 --- a/src/us/minak/IMEService.java +++ b/src/us/minak/IMEService.java @@ -1,5 +1,7 @@ package us.minak; +import java.util.Queue; + import android.inputmethodservice.InputMethodService; import android.view.View; import android.view.inputmethod.EditorInfo; @@ -33,6 +35,12 @@ public class IMEService extends InputMethodService { * Called to inform the input method that text input has started in an editor. */ public void onStartInput(EditorInfo info, boolean restarting) { - // TODO: get characters from this.imeView, and pass them to getCurrentInputConnection().commitText(..., 1); + if (imeView != null) { + final Queue<Character> symbolsQueue = imeView.getSymbolsQueue(); + while (!symbolsQueue.isEmpty()) { + final Character character = symbolsQueue.poll(); + getCurrentInputConnection().commitText(String.valueOf(character), 1); + } + } } } |