abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index e036a96..cb1def8 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -34,7 +34,7 @@ public class Keyboard2 extends InputMethodService
PreferenceManager.setDefaultValues(this, R.xml.settings, false);
PreferenceManager.getDefaultSharedPreferences(this).registerOnSharedPreferenceChangeListener(this);
_config = new Config(this);
- updateConfig();
+ _numericKeyboard = KeyboardData.parse(getResources().getXml(R.xml.numeric));
_keyboardView = (Keyboard2View)getLayoutInflater().inflate(R.layout.keyboard, null);
_keyboardView.reset();
}
@@ -96,20 +96,6 @@ public class Keyboard2 extends InputMethodService
}
}
- /*
- ** TODO: move this to Config object
- */
- private void updateConfig()
- {
- SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
-
- _textKeyboard = new KeyboardData(getResources().getXml(_getKeyboardLayoutRes(prefs)));
- if (_config.disableAccentKeys)
- _textKeyboard.removeKeysByFlag(KeyValue.FLAGS_ACCENTS);
- _numericKeyboard = new KeyboardData(getResources().getXml(R.xml.numeric));
- _emojiPane = null;
- }
-
public void handleKeyUp(KeyValue key, int flags)
{
int eventCode = key.getEventCode();