diff --git a/srcs/juloo.keyboard2/LayoutsPreference.java b/srcs/juloo.keyboard2/LayoutsPreference.java index a65b350..87a7c3b 100644 --- a/srcs/juloo.keyboard2/LayoutsPreference.java +++ b/srcs/juloo.keyboard2/LayoutsPreference.java @@ -146,7 +146,7 @@ public class LayoutsPreference extends ListGroupPreference extends PreferenceGroup return true; } - /** Called when an item is added or modified. Returns [null] to cancel the - action. */ + /** Called when an item is added or modified. */ abstract void select(SelectionCallback callback); + /** Called when an item is modified. */ + void select(SelectionCallback callback, E _old_value) + { + select(callback); + } + /** A separate class is used as the same serializer must be used in the static context. See [Serializer] below. */ abstract Serializer get_serializer();