From 703578aeb529e9bb9c88d605ae37812019c3a373 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 10 Mar 2015 23:44:01 +0100 Subject: [PATCH] Added preference categories. --- src/main/res/values/strings.xml | 6 + src/main/res/xml/app_settings.xml | 221 ++++++++++++++++-------------- 2 files changed, 124 insertions(+), 103 deletions(-) diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 9417df7e..d390a470 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -203,6 +203,8 @@ Please report any problems you encounter via Github. Settings + Syncthing-Android + Always run in background @@ -220,6 +222,8 @@ Please report any problems you encounter via Github. Select any folder on the device for syncing + Syncthing + Syncthing Options Device Name @@ -266,6 +270,8 @@ Please report any problems you encounter via Github. Debug Options + About + Report Issue diff --git a/src/main/res/xml/app_settings.xml b/src/main/res/xml/app_settings.xml index a58a0b9f..96f08cc0 100644 --- a/src/main/res/xml/app_settings.xml +++ b/src/main/res/xml/app_settings.xml @@ -1,126 +1,141 @@ - - - - - - - - - - - - - - - - - + + android:key="always_run_in_background" + android:title="@string/always_run_in_background" + android:defaultValue="false" /> + android:key="sync_only_charging" + android:title="@string/sync_only_charging" + android:defaultValue="false" /> - - + android:key="sync_only_wifi" + android:title="@string/sync_only_wifi" + android:defaultValue="false" /> + android:key="advanced_folder_picker" + android:title="@string/advanced_folder_picker" + android:summary="@string/advanced_folder_picker_summary" + android:defaultValue="false" /> - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:key="sttrace" + android:title="@string/sttrace_title" + android:singleLine="true" /> - + - + - + + + - + - + - - - - - - - - - - - +