mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-22 15:23:11 +01:00
Refactor: Remove unecessary method KeyboardData.load_pin_entry
This commit is contained in:
parent
35b4e442ab
commit
3caca59ff4
@ -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;
|
||||
|
@ -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<Integer, KeyboardData> _layoutCache = new HashMap<Integer, KeyboardData>();
|
||||
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user