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

@ -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>