diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 54caf3c..6348a1b 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -260,7 +260,7 @@ public class Keyboard2 extends InputMethodService case InputType.TYPE_CLASS_PHONE: case InputType.TYPE_CLASS_DATETIME: _currentSpecialLayout = - _config.modify_numpad(KeyboardData.load_pin_entry(getResources())); + _config.modify_numpad(KeyboardData.load(getResources(), R.xml.pin)); break; default: _currentSpecialLayout = null; diff --git a/srcs/juloo.keyboard2/KeyboardData.java b/srcs/juloo.keyboard2/KeyboardData.java index 5578a99..c008682 100644 --- a/srcs/juloo.keyboard2/KeyboardData.java +++ b/srcs/juloo.keyboard2/KeyboardData.java @@ -114,7 +114,6 @@ class KeyboardData public static Row bottom_row; public static Row number_row; public static KeyboardData num_pad; - public static KeyboardData pin_entry; private static Map _layoutCache = new HashMap(); public static void init(Resources res) @@ -131,13 +130,6 @@ class KeyboardData } } - public static KeyboardData load_pin_entry(Resources res) - { - if (pin_entry == null) - pin_entry = load(res, R.xml.pin); - return pin_entry; - } - /** Load a layout from a resource ID. Returns [null] on error. */ public static KeyboardData load(Resources res, int id) {