From 5cdb9eb9d5510adcae3f391b83b6ffa2db2c5b8f Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Tue, 31 Dec 2019 11:23:02 -0600 Subject: [PATCH] Settings: Remove extra margin --- .../src/main/res/xml/preferences.xml | 203 ++++++++++-------- 1 file changed, 112 insertions(+), 91 deletions(-) diff --git a/android/uhabits-android/src/main/res/xml/preferences.xml b/android/uhabits-android/src/main/res/xml/preferences.xml index ecb67d30e..2656688d3 100644 --- a/android/uhabits-android/src/main/res/xml/preferences.xml +++ b/android/uhabits-android/src/main/res/xml/preferences.xml @@ -1,5 +1,4 @@ - - - + + android:key="interfaceCategory" + android:title="@string/interface_preferences"> + android:defaultValue="false" + android:key="pref_short_toggle" + android:summary="@string/pref_toggle_description" + android:title="@string/pref_toggle_title" + app:iconSpaceReserved="false" /> + android:defaultValue="false" + android:key="pref_checkmark_reverse_order" + android:summary="@string/reverse_days_description" + android:title="@string/reverse_days" + app:iconSpaceReserved="false" /> + android:defaultValue="false" + android:key="pref_pure_black" + android:summary="@string/pure_black_description" + android:title="@string/use_pure_black" + app:iconSpaceReserved="false" /> + android:defaultValue="102" + android:entries="@array/widget_opacity_entries" + android:entryValues="@array/widget_opacity_values" + android:key="pref_widget_opacity" + android:summary="@string/widget_opacity_description" + android:title="@string/widget_opacity_title" + app:iconSpaceReserved="false" /> + android:key="reminderCategory" + android:title="@string/reminder"> + android:defaultValue="@string/snooze_interval_default" + android:dialogTitle="@string/snooze_interval" + android:entries="@array/snooze_interval_names" + android:entryValues="@array/snooze_interval_values" + android:key="pref_snooze_interval" + android:summary="%s" + android:title="@string/pref_snooze_interval_title" + app:iconSpaceReserved="false" /> + android:key="reminderSound" + android:title="@string/reminder_sound" + app:iconSpaceReserved="false" /> + android:defaultValue="false" + android:key="pref_sticky_notifications" + android:summary="@string/sticky_notifications_description" + android:title="@string/sticky_notifications" + app:iconSpaceReserved="false" /> + android:defaultValue="false" + android:key="pref_led_notifications" + android:summary="@string/led_notifications_description" + android:title="@string/led_notifications" + app:iconSpaceReserved="false" /> + android:key="reminderCustomize" + android:summary="@string/customize_notification_summary" + android:title="@string/customize_notification" + app:iconSpaceReserved="false" /> + android:key="databaseCategory" + android:title="@string/database"> - + android:key="exportDB" + android:summary="@string/export_full_backup_summary" + android:title="@string/export_full_backup" + app:iconSpaceReserved="false" /> - + android:key="exportCSV" + android:summary="@string/export_as_csv_summary" + android:title="@string/export_to_csv" + app:iconSpaceReserved="false" /> - + android:key="importData" + android:summary="@string/import_data_summary" + android:title="@string/import_data" + app:iconSpaceReserved="false" /> + android:key="pref_key_debug" + android:title="@string/troubleshooting"> + android:key="bugReport" + android:title="@string/generate_bug_report" + app:iconSpaceReserved="false" /> + android:key="repairDB" + android:title="@string/repair_database" + app:iconSpaceReserved="false" /> + android:key="linksCategory" + android:title="@string/links"> - + + android:action="android.intent.action.VIEW" + android:data="@string/helpURL" /> - + + android:action="android.intent.action.VIEW" + android:data="@string/playStoreURL" /> - + + android:action="android.intent.action.VIEW" + android:targetClass="org.isoron.uhabits.activities.about.AboutActivity" + android:targetPackage="org.isoron.uhabits" /> + android:key="devCategory" + android:title="Development"> + android:defaultValue="false" + android:key="pref_developer" + android:title="Enable developer mode" + app:iconSpaceReserved="false" /> + android:title="Enable widget stacks" + app:iconSpaceReserved="false" /> + android:defaultValue="false" + android:key="pref_feature_sync" + android:title="Enable cloud sync" + app:iconSpaceReserved="false" /> + android:key="pref_sync_address" + android:title="Sync server address" + app:iconSpaceReserved="false" /> + android:key="pref_sync_key" + android:title="Sync key" + app:iconSpaceReserved="false" />