Back to SQLite (#420)
* Deleted Objectbox and went back to SQLite. The database structure is entirely new and optimized for fast performance * Added slow query stats + cache for even faster performance * automatic language sorting script * legacy database management using SQLiteOpener * simplified access to the constant settings
This commit is contained in:
parent
e1574c38e5
commit
f1657a0285
51 changed files with 1763 additions and 946 deletions
|
|
@ -25,11 +25,11 @@
|
|||
<string name="pref_category_hacks">Compatibility</string>
|
||||
<string name="pref_category_appearance">Appearance</string>
|
||||
<string name="pref_category_debug_options" translatable="false">Debug Options</string>
|
||||
<string name="pref_category_log_messages" translatable="false">Recent Log Messages</string>
|
||||
<string name="pref_category_predictive_mode">Predictive Mode</string>
|
||||
<string name="pref_category_function_keys">Select Hotkeys</string>
|
||||
<string name="pref_category_keypad">Keypad</string>
|
||||
<string name="pref_category_setup">Initial Setup</string>
|
||||
<string name="pref_category_usage_stats" translatable="false">Usage Stats</string>
|
||||
|
||||
<string name="pref_abc_auto_accept">Automatic Letter Select</string>
|
||||
<string name="pref_abc_auto_accept_summary">Automatically type the selected letter after a short delay.</string>
|
||||
|
|
@ -44,8 +44,6 @@
|
|||
<string name="pref_dark_theme_yes">Yes</string>
|
||||
<string name="pref_dark_theme_no">No</string>
|
||||
<string name="pref_dark_theme_auto">Auto</string>
|
||||
<string name="pref_debug_logs" translatable="false">Detailed Debug Logs</string>
|
||||
<string name="pref_system_logs" translatable="false">System Logs</string>
|
||||
<string name="pref_double_zero_char">Character for Double 0-key Press</string>
|
||||
<string name="pref_hack_fb_messenger">Send messages with OK in Messenger</string>
|
||||
<string name="pref_hack_fb_messenger_summary">Allows sending messages with the OK key in Facebook Messenger.</string>
|
||||
|
|
|
|||
|
|
@ -1,20 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto" app:orderingFromXml="true">
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
app:fragment="io.github.sspanak.tt9.preferences.SlowQueriesScreen"
|
||||
app:key="pref_slow_queries"
|
||||
app:layout="@layout/pref_text"
|
||||
app:title="@string/pref_category_usage_stats" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
app:defaultValue="false"
|
||||
app:key="pref_enable_debug_logs"
|
||||
app:layout="@layout/pref_switch"
|
||||
app:title="@string/pref_debug_logs" />
|
||||
app:title="Debug Logs" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
app:defaultValue="false"
|
||||
app:key="pref_enable_system_logs"
|
||||
app:layout="@layout/pref_switch"
|
||||
app:title="@string/pref_system_logs" />
|
||||
app:title="System Logs" />
|
||||
|
||||
<PreferenceCategory
|
||||
app:title="@string/pref_category_log_messages"
|
||||
app:title="Recent Log Messages"
|
||||
app:layout="@layout/pref_category"
|
||||
app:singleLineTitle="true">
|
||||
<Preference
|
||||
|
|
|
|||
31
res/xml/prefs_screen_usage_stats.xml
Normal file
31
res/xml/prefs_screen_usage_stats.xml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto" app:orderingFromXml="true">
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
app:key="pref_slow_queries_reset_stats"
|
||||
app:layout="@layout/pref_text"
|
||||
app:title="Clear DB Cache" />
|
||||
|
||||
<PreferenceCategory
|
||||
app:title="Summary"
|
||||
app:layout="@layout/pref_category"
|
||||
app:singleLineTitle="true">
|
||||
<Preference
|
||||
app:key="summary_container"
|
||||
app:summary="--"
|
||||
app:layout="@layout/pref_plain_text">
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
app:title="Slow Queries"
|
||||
app:layout="@layout/pref_category"
|
||||
app:singleLineTitle="true">
|
||||
<Preference
|
||||
app:key="query_list_container"
|
||||
app:summary="--"
|
||||
app:layout="@layout/pref_plain_text">
|
||||
</Preference>
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Loading…
Add table
Add a link
Reference in a new issue