diff options
| author | jaguillo | 2015-10-01 17:11:52 +0200 |
|---|---|---|
| committer | jaguillo | 2015-10-01 17:11:52 +0200 |
| commit | 700adbded6dcaf0634f1ef72c40da3e53722d890 (patch) | |
| tree | 3adaad7f3d565626d5eddd5a4fa6b2d7fbe6515c /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | 310ecc8ef250806888306c8460c6f509ed2d7766 (diff) | |
| download | unexpected-keyboard-700adbded6dcaf0634f1ef72c40da3e53722d890.tar.gz unexpected-keyboard-700adbded6dcaf0634f1ef72c40da3e53722d890.zip | |
Mini fix
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 4ac25b2..4e8151d 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -1,8 +1,10 @@ package juloo.keyboard2; +import android.content.res.Configuration; import android.content.Intent; import android.content.SharedPreferences; import android.inputmethodservice.InputMethodService; +import android.os.Bundle; import android.preference.PreferenceManager; import android.view.KeyEvent; import android.view.View; @@ -28,6 +30,7 @@ public class Keyboard2 extends InputMethodService { ViewGroup parent = (ViewGroup)_inputView.getParent(); + System.out.println("create input view"); if (parent != null) parent.removeView(_inputView); _inputView.reset(); @@ -40,10 +43,24 @@ public class Keyboard2 extends InputMethodService _inputView.reset_prefs(this); } + @Override + public void onAppPrivateCommand(String command, Bundle data) + { + System.out.println("App private command: " + command); + } + + @Override + public void onConfigurationChanged(Configuration newConfig) + { + _inputView.reset(); + System.out.println("configuration change"); + } + public void handleKeyUp(KeyValue key, int flags) { if (getCurrentInputConnection() == null) return ; + System.out.println("key up "); if (key.getEventCode() == KeyValue.EVENT_CONFIG) { Intent intent = new Intent(this, SettingsActivity.class); |
