1
0
Fork 0

created a debugging screen for viewing the application logs

This commit is contained in:
sspanak 2023-08-02 17:04:13 +03:00
parent 9f65cb5ce8
commit 8b57289746
19 changed files with 190 additions and 40 deletions

View file

@ -44,6 +44,7 @@
app:singleLineTitle="true">
<Preference
app:fragment="io.github.sspanak.tt9.preferences.DebugScreen"
app:key="version_info"
app:layout="@layout/pref_text"
app:title="@string/app_name" />

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto" app:orderingFromXml="true">
<SwitchPreferenceCompat
app:key="pref_enable_debug_logs"
app:layout="@layout/pref_switch"
app:title="@string/pref_debug_logs" />
<SwitchPreferenceCompat
app:key="pref_enable_system_logs"
app:layout="@layout/pref_switch"
app:title="@string/pref_system_logs" />
<PreferenceCategory
app:title="@string/pref_category_log_messages"
app:layout="@layout/pref_category"
app:singleLineTitle="true">
<Preference
app:key="debug_logs_container"
app:summary="--"
app:layout="@layout/pref_plain_text">
</Preference>
</PreferenceCategory>
</PreferenceScreen>