diff options
| author | Jules Aguillon | 2025-01-18 11:34:08 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2025-01-18 11:34:08 +0100 |
| commit | c6908ec846875907786393656d3a92e46e27b994 (patch) | |
| tree | c639592dc03370efd43d92059abd4e1beeed429d /srcs/juloo.keyboard2 | |
| parent | 16c2be96b34b29598d1a6b64aa85fe7bde1d6208 (diff) | |
| download | unexpected-keyboard-c6908ec846875907786393656d3a92e46e27b994.tar.gz unexpected-keyboard-c6908ec846875907786393656d3a92e46e27b994.zip | |
Stable ordering or extra keys
Extra keys were ordered randomly everytime the settings were changed.
Now, there's a single ordering for each combinations of options in the
settings.
Diffstat (limited to 'srcs/juloo.keyboard2')
| -rw-r--r-- | srcs/juloo.keyboard2/LayoutModifier.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/LayoutModifier.java b/srcs/juloo.keyboard2/LayoutModifier.java index 7220634..f37be25 100644 --- a/srcs/juloo.keyboard2/LayoutModifier.java +++ b/srcs/juloo.keyboard2/LayoutModifier.java @@ -2,7 +2,7 @@ package juloo.keyboard2; import android.content.res.Resources; import android.view.KeyEvent; -import java.util.HashMap; +import java.util.TreeMap; import java.util.HashSet; import java.util.Map; import java.util.Set; @@ -26,7 +26,7 @@ public final class LayoutModifier { // Extra keys are removed from the set as they are encountered during the // first iteration then automatically added. - final Map<KeyValue, KeyboardData.PreferredPos> extra_keys = new HashMap<KeyValue, KeyboardData.PreferredPos>(); + final TreeMap<KeyValue, KeyboardData.PreferredPos> extra_keys = new TreeMap<KeyValue, KeyboardData.PreferredPos>(); final Set<KeyValue> remove_keys = new HashSet<KeyValue>(); // Make sure the config key is accessible to avoid being locked in a custom // layout. |
