created a debugging screen for viewing the application logs
This commit is contained in:
parent
9f65cb5ce8
commit
8b57289746
19 changed files with 190 additions and 40 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
25
res/xml/prefs_screen_debug.xml
Normal file
25
res/xml/prefs_screen_debug.xml
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue