1
0
Fork 0

final code cleanup before 45

This commit is contained in:
sspanak 2025-02-12 12:38:14 +02:00 committed by Dimo Karaivanov
parent c429e309e2
commit b56af3ab4f
18 changed files with 169 additions and 185 deletions

View file

@ -56,7 +56,7 @@ Compatibility has been verified only on the following devices:
## 🤔 How to Use Traditional T9?
Before using Traditional T9 for the first time you need to configure it and load a dictionary. After that, you can start typing right away in one of the three modes: Predictive, ABC, or Numeric (123). And even if you have mastered the keypad back in the day, you will still find the Predictive mode now offers more powerful and smart new ways of typing with even fewer key presses.
So make sure to read the initial setup and the hotkey tips in the [user manual](docs/help/help.en.md). Also, don't miss the convenient [compatibility options](docs/help/help.en.md#compatibility-options--troubleshooting) aimed to improve the experience in some applications.
So make sure to read the initial setup and the hotkey tips in the [user manual](docs/help/help.en.md). Also, don't miss the convenient [compatibility options](docs/help/help.en.md#compatibility-options) aimed to improve the experience in some applications.
_The user manual is also available in: [Brazilian Portuguese](docs/help/help.pt.md), [German](docs/help/help.de.md), [French](docs/help/help.fr.md), [Italian](docs/help/help.it.md), [Russian](docs/help/help.ru.md), [Spanish](docs/help/help.es.md), [Turkish](docs/help/help.tr.md), [Ukrainian](docs/help/help.uk.md)._

View file

@ -16,7 +16,7 @@ import io.github.sspanak.tt9.preferences.settings.SettingsStore;
import io.github.sspanak.tt9.ui.UI;
import io.github.sspanak.tt9.util.Logger;
class DonatePreference extends Preference {
public class DonatePreference extends Preference {
public static final String NAME = "donate_link";

View file

@ -46,8 +46,7 @@ public class MainSettingsScreen extends BaseScreenFragment {
private void createAboutSection(boolean isTT9On) {
(new ItemVersionInfo(findPreference(ItemVersionInfo.NAME), activity)).populate().enableClickHandler();
DonatePreference donate = findPreference("donate_link");
DonatePreference donate = findPreference(DonatePreference.NAME);
if (donate != null) {
donate.populate(activity.getSettings(), isTT9On);
}

View file

@ -18,8 +18,6 @@ public class SettingsStore extends SettingsUI {
public final static int DICTIONARY_DOWNLOAD_READ_TIMEOUT = 10000; // ms
public final static int DICTIONARY_IMPORT_BATCH_SIZE = 5000; // words
public final static int DICTIONARY_IMPORT_PROGRESS_UPDATE_TIME = 250; // ms
public final static int INPUT_CONNECTION_ERRORS_MAX = 3;
public final static int INPUT_CONNECTION_OPERATIONS_TIMEOUT = 100; // ms
public final static int RESIZE_THROTTLING_TIME = 60; // ms
public final static byte SLOW_QUERY_TIME = 50; // ms
public final static int SLOW_QUERY_TIMEOUT = 3000; // ms

View file

@ -143,9 +143,4 @@ public class UI {
public static void toastShortSingle(@NonNull Context context, int resourceId) {
toastSingle(context, String.valueOf(resourceId), context.getString(resourceId), true);
}
public static void toastLongSingle(@NonNull Context context, int resourceId) {
toastSingle(context, String.valueOf(resourceId), context.getString(resourceId), false);
}
}

View file

@ -29,6 +29,6 @@
<io.github.sspanak.tt9.ui.main.keys.SoftKeyLF4
style="@style/TTheme.Numpad.Key.LF4"
android:id="@+id/soft_key_lf4" />
<include layout="@layout/key_overlay_icons" />
<include layout="@layout/key_overlay_lf4" />
</RelativeLayout>
</LinearLayout>

View file

@ -3,12 +3,6 @@
What colors look good together: https://www.canva.com/colors/color-wheel/
-->
<resources>
<!--*******************************************
Launcher Icon
*******************************************-->
<color name="ic_launcher_background">#020D11</color>
<!--*******************************************
Keyboard
*******************************************-->

View file

@ -25,7 +25,6 @@
<dimen name="pref_custom_spacing_horizontal">16dp</dimen>
<dimen name="pref_custom_spacing_vertical">12dp</dimen>
<dimen name="pref_deletable_word_icon_size">32sp</dimen>
<dimen name="pref_search_height">72dp</dimen>
<!-- Preferences, large text size -->
<dimen name="large_pref_category_spacing_top">30dp</dimen>

View file

@ -151,7 +151,6 @@
<string name="donate_summary">If you like %1$s, you could buy me a beer.</string>
<string name="donate_hold_to_open">Press and hold to open in the browser.</string>
<string name="donate_url" translatable="false">https://www.buymeacoffee.com/sspanak</string>
<string name="donate_url_short" translatable="false">www.buymeacoffee.com</string>
<string name="function_add_word">Add Word</string>
<string name="function_add_word_not_available">Adding words is not possible in this language.</string>

View file

@ -398,4 +398,4 @@ If you are still learning to use T9 and need to switch back occasionally or find
Most other keyboards allow switching back to Traditional T9 by holding the spacebar or the "change language" key. Check the respective readme or manual for more info.
#### I can't change the language on a touchscreen phone
First, ensure you have enabled all desired languages from Settings → Languages. Then hold the [Left F4 key](#left-f4-key-the-bottom-left-key) to change the language.
First, ensure you have enabled all desired languages from Settings → Languages. Then hold the [Left F4 key](#left-f4-key-located-above-ok) to change the language.

View file

@ -398,4 +398,4 @@ Si aún estás aprendiendo a usar T9 y necesitas cambiar de vez en cuando, o enc
La mayoría de los otros teclados permiten cambiar de nuevo a Traditional T9 manteniendo presionada la barra espaciadora o la tecla de "cambiar idioma". Consulta el respectivo readme o manual para más información.
#### No puedo cambiar el idioma en un teléfono con pantalla táctil
Primero, asegúrese de haber habilitado todos los idiomas deseados desde Configuración → Idiomas. Luego mantenga pulsada la [tecla izquierda F4](#tecla-izquierda-f4-la-tecla-inferior-izquierda) para cambiar el idioma.
Primero, asegúrese de haber habilitado todos los idiomas deseados desde Configuración → Idiomas. Luego mantenga pulsada la [tecla izquierda F4](#tecla-f4-izquierda-la-tecla-inferior-izquierda) para cambiar el idioma.

View file

@ -397,4 +397,4 @@ Se stai ancora imparando a usare T9 e hai bisogno di tornare indietro occasional
La maggior parte delle altre tastiere permette di tornare a Traditional T9 tenendo premuta la barra spaziatrice o il tasto "cambia lingua". Controlla il rispettivo manuale per ulteriori informazioni.
#### Non riesco a cambiare lingua su un telefono touchscreen
Innanzitutto, assicurati di aver abilitato tutte le lingue desiderate in Impostazioni → Lingue. Poi tieni premuto il [tasto sinistro F4](#tasto-sinistro-f4-il-tasto-in-basso-a-sinistra) per cambiare lingua.
Innanzitutto, assicurati di aver abilitato tutte le lingue desiderate in Impostazioni → Lingue. Poi tieni premuto il [tasto sinistro F4](#tasto-f4-sinistro-il-tasto-in-basso-a-sinistra) per cambiare lingua.