From 3caca59ff43e09578838d213b9c2f94c072b0832 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Tue, 28 Mar 2023 11:55:24 +0200 Subject: [PATCH] Refactor: Remove unecessary method KeyboardData.load_pin_entry --- srcs/juloo.keyboard2/Keyboard2.java | 2 +- srcs/juloo.keyboard2/KeyboardData.java | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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) {