abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
authorjaguillo2015-10-26 14:19:46 +0100
committerjaguillo2015-10-26 14:19:46 +0100
commite95ccbec0018298bc8b80477b4cc5a5aee0e6214 (patch)
treef2b3f882e160e05d91f02b2d986d0c8d978e1e0b /srcs/juloo.keyboard2/Keyboard2.java
parent8bd0214e2695c2a621624967a595a069902e6fdd (diff)
downloadunexpected-keyboard-e95ccbec0018298bc8b80477b4cc5a5aee0e6214.tar.gz
unexpected-keyboard-e95ccbec0018298bc8b80477b4cc5a5aee0e6214.zip
Last used emoji
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java20
1 files changed, 6 insertions, 14 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index e1e3186..e180ae2 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -66,11 +66,6 @@ public class Keyboard2 extends InputMethodService
}
@Override
- public void onAppPrivateCommand(String command, Bundle data)
- {
- }
-
- @Override
public void onConfigurationChanged(Configuration newConfig)
{
_keyboardView.reset();
@@ -109,7 +104,11 @@ public class Keyboard2 extends InputMethodService
else if (eventCode == KeyValue.EVENT_SWITCH_NUMERIC)
_keyboardView.setKeyboard(_numericKeyboard);
else if (eventCode == KeyValue.EVENT_SWITCH_EMOJI)
- setInputView(getEmojiPane());
+ {
+ if (_emojiPane == null)
+ _emojiPane = (ViewGroup)getLayoutInflater().inflate(R.layout.emoji_pane, null);
+ setInputView(_emojiPane);
+ }
else if (eventCode == KeyValue.EVENT_SWITCH_BACK_EMOJI)
setInputView(_keyboardView);
else if ((flags & (KeyValue.FLAG_CTRL | KeyValue.FLAG_ALT)) != 0)
@@ -125,17 +124,10 @@ public class Keyboard2 extends InputMethodService
else
getCurrentInputConnection().commitText(key.getSymbol(flags), 1);
}
- else if (keyChar != KeyValue.CHAR_NONE)
+ else
sendKeyChar(keyChar);
}
- private ViewGroup getEmojiPane()
- {
- if (_emojiPane == null)
- _emojiPane = (ViewGroup)getLayoutInflater().inflate(R.layout.emoji_pane, null);
- return (_emojiPane);
- }
-
// private void handleDelKey(int before, int after)
// {
// CharSequence selection = getCurrentInputConnection().getSelectedText(0);