From b5a96dc4dcee3a736390d868a3b0be52a019d56d Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 9 Jun 2024 14:25:19 +0200 Subject: [PATCH] Option to tweak or disable the circle gesture --- res/values-cs/strings.xml | 5 +++++ res/values-de/strings.xml | 5 +++++ res/values-es/strings.xml | 5 +++++ res/values-fa/strings.xml | 5 +++++ res/values-fr/strings.xml | 5 +++++ res/values-it/strings.xml | 5 +++++ res/values-ko/strings.xml | 5 +++++ res/values-lv/strings.xml | 5 +++++ res/values-pl/strings.xml | 5 +++++ res/values-pt/strings.xml | 5 +++++ res/values-ro/strings.xml | 5 +++++ res/values-ru/strings.xml | 5 +++++ res/values-tr/strings.xml | 5 +++++ res/values-uk/strings.xml | 5 +++++ res/values-vi/strings.xml | 5 +++++ res/values-zh-rCN/strings.xml | 5 +++++ res/values/arrays.xml | 12 ++++++++++++ res/values/strings.xml | 5 +++++ res/xml/settings.xml | 1 + srcs/juloo.keyboard2/Config.java | 2 ++ srcs/juloo.keyboard2/Gesture.java | 2 +- 21 files changed, 101 insertions(+), 1 deletion(-) diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index 088b774..8474f7f 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -77,6 +77,11 @@ Tato aplikace neobsahuje žádné reklamy, nevyužívá připojení k síti a je Přizpůsobit okraje Šířka okraje Poloměr okraje + + + + + Další Dokončit Spustit diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index df2c106..4dd9e82 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -77,6 +77,11 @@ Diese App enthält keine Werbung, benötigt keinen Netzwerkzugriff und ist quell Ränder anpassen Randbreite Radius der Ecken + + + + + Nächstes Fertig Los diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index b24f8fc..66ca26a 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -77,6 +77,11 @@ La misma no contiene ningún anuncio/publicidad, no realiza peticiones de red y Bordes personalizados Ancho de bordes Radio de rincones + + + + + Siguiente Hecho Ir diff --git a/res/values-fa/strings.xml b/res/values-fa/strings.xml index 76e8db1..f8132ce 100644 --- a/res/values-fa/strings.xml +++ b/res/values-fa/strings.xml @@ -77,6 +77,11 @@ This application contains no ads, doesn't make any network requests and is Open + + + + + بعدی اتمام برو diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 4450819..5530a8b 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -77,6 +77,11 @@ Cette application ne contient pas de publicité, n'accède pas au réseau et est + + + + + Suiv. Fin Aller diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index 12d6d34..84c5706 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -77,6 +77,11 @@ This application contains no ads, doesn't make any network requests and is Open + + + + + Prossimo Fatto Vai diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index 9e124b8..f0c1996 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -77,6 +77,11 @@ This application contains no ads, doesn't make any network requests and is Open + + + + + 다음 확인 Go diff --git a/res/values-lv/strings.xml b/res/values-lv/strings.xml index 6152d46..c4c39b3 100644 --- a/res/values-lv/strings.xml +++ b/res/values-lv/strings.xml @@ -77,6 +77,11 @@ Tagad lieliski piemērota izmantošanai ikdienā. Pielāgot apmales Apmales platums Stūru rādiuss + + + + + Nākamais Darīts Aiziet diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index 5a4b8e9..fdd4635 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -77,6 +77,11 @@ Aplikacja nie zawiera reklam, nie żąda dostępu do internetu, a jej kod źród Dostosuj krawędzie Grubość krawedzi Promień rogów + + + + + Dalej OK Przejdź diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml index cd86df0..4eac2a7 100644 --- a/res/values-pt/strings.xml +++ b/res/values-pt/strings.xml @@ -77,6 +77,11 @@ Este aplicativo não contém anúncios, não faz nenhuma solicitação de rede e Personalizar bordas Largura de borda Arredondamento de canto + + + + + Próximo Pronto Ir diff --git a/res/values-ro/strings.xml b/res/values-ro/strings.xml index 5e4d358..cf54f43 100644 --- a/res/values-ro/strings.xml +++ b/res/values-ro/strings.xml @@ -77,6 +77,11 @@ Această aplicație nu conține publicitate, nu folosește rețeaua deloc și e + + + + + Următor Gata Go diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index 1b5c3db..59a048e 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -77,6 +77,11 @@ Настройка рамки Ширина рамки Радиус скругления + + + + + Вперед Ввод Перейти diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index da03673..9f017ca 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -77,6 +77,11 @@ Bu uygulama açık kaynaklıdır. Reklam içermez ve internete bağlanmaz."Customize borders --> + + + + + Sonraki Tamam ileri diff --git a/res/values-uk/strings.xml b/res/values-uk/strings.xml index 1ef0cf1..076d7e2 100644 --- a/res/values-uk/strings.xml +++ b/res/values-uk/strings.xml @@ -77,6 +77,11 @@ Налаштувати межі Ширина межі Радіус кута + + + + + Далі Готово Іти diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index d008bd1..a8bea74 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -77,6 +77,11 @@ Bây giờ đã hoàn hảo cho việc sử dụng hàng ngày. + + + + + Tiếp Xong Đi diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 2ceff86..20eba97 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -77,6 +77,11 @@ 自定义边界 边界宽度 圆角半径 + + + + + 下一项 完成 前往 diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 04d13f9..9176882 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -54,4 +54,16 @@ 25 35 + + @string/pref_circle_sensitivity_e_high + @string/pref_circle_sensitivity_e_medium + @string/pref_circle_sensitivity_e_low + @string/pref_circle_sensitivity_e_disabled + + + 2 + 3 + 4 + 12 + diff --git a/res/values/strings.xml b/res/values/strings.xml index 542feee..9050ce8 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -77,6 +77,11 @@ This application contains no ads, doesn't make any network requests and is Open Customize borders Border Width Corner radius + Circle gesture sensitivity + High + Medium + Low + Disabled Next Done Go diff --git a/res/xml/settings.xml b/res/xml/settings.xml index 3068f78..270dfcd 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -14,6 +14,7 @@ + diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 09b3157..8b72bc7 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -65,6 +65,7 @@ public final class Config public boolean switch_input_immediate; public boolean pin_entry_enabled; public boolean borderConfig; + public int circle_sensitivity; // Dynamically set public boolean shouldOfferVoiceTyping; @@ -181,6 +182,7 @@ public final class Config pin_entry_enabled = _prefs.getBoolean("pin_entry_enabled", true); current_layout_portrait = _prefs.getInt("current_layout_portrait", 0); current_layout_landscape = _prefs.getInt("current_layout_landscape", 0); + circle_sensitivity = Integer.valueOf(_prefs.getString("circle_sensitivity", "2")); } public int get_current_layout() diff --git a/srcs/juloo.keyboard2/Gesture.java b/srcs/juloo.keyboard2/Gesture.java index 5ee666b..d54b51a 100644 --- a/srcs/juloo.keyboard2/Gesture.java +++ b/srcs/juloo.keyboard2/Gesture.java @@ -86,7 +86,7 @@ public final class Gesture switch (state) { case Swiped: - if (Math.abs(d) < ROTATION_THRESHOLD) + if (Math.abs(d) < Config.globalConfig().circle_sensitivity) return false; // Start a rotation state = (clockwise) ?