mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +00:00
Added preference categories.
This commit is contained in:
parent
beb9dc54a4
commit
703578aeb5
2 changed files with 124 additions and 103 deletions
|
@ -203,6 +203,8 @@ Please report any problems you encounter via Github.</string>
|
||||||
<!-- Activity title -->
|
<!-- Activity title -->
|
||||||
<string name="settings_title">Settings</string>
|
<string name="settings_title">Settings</string>
|
||||||
|
|
||||||
|
<string name="category_syncthing_android">Syncthing-Android</string>
|
||||||
|
|
||||||
<!-- Preference title -->
|
<!-- Preference title -->
|
||||||
<string name="always_run_in_background">Always run in background</string>
|
<string name="always_run_in_background">Always run in background</string>
|
||||||
|
|
||||||
|
@ -220,6 +222,8 @@ Please report any problems you encounter via Github.</string>
|
||||||
|
|
||||||
<string name="advanced_folder_picker_summary">Select any folder on the device for syncing</string>
|
<string name="advanced_folder_picker_summary">Select any folder on the device for syncing</string>
|
||||||
|
|
||||||
|
<string name="category_syncthing">Syncthing</string>
|
||||||
|
|
||||||
<string name="syncthing_options">Syncthing Options</string>
|
<string name="syncthing_options">Syncthing Options</string>
|
||||||
|
|
||||||
<string name="device_name">Device Name</string>
|
<string name="device_name">Device Name</string>
|
||||||
|
@ -266,6 +270,8 @@ Please report any problems you encounter via Github.</string>
|
||||||
<!-- Title for the preference to set STTRACE parameters -->
|
<!-- Title for the preference to set STTRACE parameters -->
|
||||||
<string name="sttrace_title">Debug Options</string>
|
<string name="sttrace_title">Debug Options</string>
|
||||||
|
|
||||||
|
<string name="category_about">About</string>
|
||||||
|
|
||||||
<!-- Settings item that opens issue tracker -->
|
<!-- Settings item that opens issue tracker -->
|
||||||
<string name="report_issue_title">Report Issue</string>
|
<string name="report_issue_title">Report Issue</string>
|
||||||
|
|
||||||
|
|
|
@ -1,126 +1,141 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<CheckBoxPreference
|
<PreferenceCategory
|
||||||
android:key="always_run_in_background"
|
android:title="@string/category_syncthing_android">
|
||||||
android:title="@string/always_run_in_background"
|
|
||||||
android:defaultValue="false" />
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
|
||||||
android:key="sync_only_charging"
|
|
||||||
android:title="@string/sync_only_charging"
|
|
||||||
android:defaultValue="false" />
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
|
||||||
android:key="sync_only_wifi"
|
|
||||||
android:title="@string/sync_only_wifi"
|
|
||||||
android:defaultValue="false" />
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
|
||||||
android:key="advanced_folder_picker"
|
|
||||||
android:title="@string/advanced_folder_picker"
|
|
||||||
android:summary="@string/advanced_folder_picker_summary"
|
|
||||||
android:defaultValue="false" />
|
|
||||||
|
|
||||||
<PreferenceScreen
|
|
||||||
android:key="syncthing_options"
|
|
||||||
android:title="@string/syncthing_options"
|
|
||||||
android:persistent="false">
|
|
||||||
|
|
||||||
<EditTextPreference
|
|
||||||
android:key="DeviceName"
|
|
||||||
android:title="@string/device_name" />
|
|
||||||
|
|
||||||
<EditTextPreference
|
|
||||||
android:key="ListenAddress"
|
|
||||||
android:title="@string/listen_address" />
|
|
||||||
|
|
||||||
<EditTextPreference
|
|
||||||
android:key="MaxRecvKbps"
|
|
||||||
android:title="@string/max_recv_kbps"
|
|
||||||
android:numeric="integer" />
|
|
||||||
|
|
||||||
<EditTextPreference
|
|
||||||
android:key="MaxSendKbps"
|
|
||||||
android:title="@string/max_send_kbps"
|
|
||||||
android:numeric="integer" />
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:key="GlobalAnnEnabled"
|
android:key="always_run_in_background"
|
||||||
android:title="@string/global_announce_enabled" />
|
android:title="@string/always_run_in_background"
|
||||||
|
android:defaultValue="false" />
|
||||||
|
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:key="LocalAnnEnabled"
|
android:key="sync_only_charging"
|
||||||
android:title="@string/local_announce_enabled" />
|
android:title="@string/sync_only_charging"
|
||||||
|
android:defaultValue="false" />
|
||||||
|
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:key="UPnPEnabled"
|
android:key="sync_only_wifi"
|
||||||
android:title="@string/upnp_enabled" />
|
android:title="@string/sync_only_wifi"
|
||||||
|
android:defaultValue="false" />
|
||||||
<EditTextPreference
|
|
||||||
android:key="GlobalAnnServers"
|
|
||||||
android:title="@string/global_announce_server" />
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:key="URAccepted"
|
android:key="advanced_folder_picker"
|
||||||
android:title="@string/usage_reporting" />
|
android:title="@string/advanced_folder_picker"
|
||||||
|
android:summary="@string/advanced_folder_picker_summary"
|
||||||
|
android:defaultValue="false" />
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceCategory>
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceCategory
|
||||||
android:key="syncthing_gui"
|
android:title="@string/category_syncthing">
|
||||||
android:title="@string/syncthing_gui"
|
|
||||||
android:persistent="false">
|
<PreferenceScreen
|
||||||
|
android:key="syncthing_options"
|
||||||
|
android:title="@string/syncthing_options"
|
||||||
|
android:persistent="false">
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="DeviceName"
|
||||||
|
android:title="@string/device_name" />
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="ListenAddress"
|
||||||
|
android:title="@string/listen_address" />
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="MaxRecvKbps"
|
||||||
|
android:title="@string/max_recv_kbps"
|
||||||
|
android:numeric="integer" />
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="MaxSendKbps"
|
||||||
|
android:title="@string/max_send_kbps"
|
||||||
|
android:numeric="integer" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="GlobalAnnEnabled"
|
||||||
|
android:title="@string/global_announce_enabled" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="LocalAnnEnabled"
|
||||||
|
android:title="@string/local_announce_enabled" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="UPnPEnabled"
|
||||||
|
android:title="@string/upnp_enabled" />
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="GlobalAnnServers"
|
||||||
|
android:title="@string/global_announce_server" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="URAccepted"
|
||||||
|
android:title="@string/usage_reporting" />
|
||||||
|
|
||||||
|
</PreferenceScreen>
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
android:key="syncthing_gui"
|
||||||
|
android:title="@string/syncthing_gui"
|
||||||
|
android:persistent="false">
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="Address"
|
||||||
|
android:title="@string/gui_address" />
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="User"
|
||||||
|
android:title="@string/gui_user" />
|
||||||
|
|
||||||
|
<EditTextPreference
|
||||||
|
android:key="Password"
|
||||||
|
android:title="@string/gui_password"
|
||||||
|
android:inputType="textPassword" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="UseTLS"
|
||||||
|
android:title="@string/gui_https_enabled"
|
||||||
|
android:enabled="false" />
|
||||||
|
|
||||||
|
</PreferenceScreen>
|
||||||
|
|
||||||
|
<Preference
|
||||||
|
android:key="export_config"
|
||||||
|
android:title="@string/export_config" />
|
||||||
|
|
||||||
|
<Preference
|
||||||
|
android:key="import_config"
|
||||||
|
android:title="@string/import_config" />
|
||||||
|
|
||||||
<EditTextPreference
|
<EditTextPreference
|
||||||
android:key="Address"
|
android:key="sttrace"
|
||||||
android:title="@string/gui_address" />
|
android:title="@string/sttrace_title"
|
||||||
|
android:singleLine="true" />
|
||||||
|
|
||||||
<EditTextPreference
|
</PreferenceCategory>
|
||||||
android:key="User"
|
|
||||||
android:title="@string/gui_user" />
|
|
||||||
|
|
||||||
<EditTextPreference
|
<PreferenceCategory
|
||||||
android:key="Password"
|
android:title="@string/category_about">
|
||||||
android:title="@string/gui_password"
|
|
||||||
android:inputType="textPassword" />
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
<Preference
|
||||||
android:key="UseTLS"
|
android:title="@string/report_issue_title"
|
||||||
android:title="@string/gui_https_enabled"
|
android:summary="@string/report_issue_summary">
|
||||||
android:enabled="false" />
|
<intent
|
||||||
|
android:action="android.intent.action.VIEW"
|
||||||
|
android:data="@string/issue_tracker_url" />
|
||||||
|
</Preference>
|
||||||
|
|
||||||
</PreferenceScreen>
|
<Preference
|
||||||
|
android:key="syncthing_version"
|
||||||
|
android:title="@string/syncthing_version_title"
|
||||||
|
style="?android:preferenceInformationStyle" />
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:key="export_config"
|
android:key="app_version"
|
||||||
android:title="@string/export_config" />
|
android:title="@string/app_version_title"
|
||||||
|
style="?android:preferenceInformationStyle" />
|
||||||
|
|
||||||
<Preference
|
</PreferenceCategory>
|
||||||
android:key="import_config"
|
|
||||||
android:title="@string/import_config" />
|
|
||||||
|
|
||||||
<EditTextPreference
|
|
||||||
android:key="sttrace"
|
|
||||||
android:title="@string/sttrace_title"
|
|
||||||
android:singleLine="true" />
|
|
||||||
|
|
||||||
<Preference
|
|
||||||
android:title="@string/report_issue_title"
|
|
||||||
android:summary="@string/report_issue_summary">
|
|
||||||
<intent
|
|
||||||
android:action="android.intent.action.VIEW"
|
|
||||||
android:data="@string/issue_tracker_url" />
|
|
||||||
</Preference>
|
|
||||||
|
|
||||||
<Preference
|
|
||||||
android:key="syncthing_version"
|
|
||||||
android:title="@string/syncthing_version_title"
|
|
||||||
style="?android:preferenceInformationStyle" />
|
|
||||||
|
|
||||||
<Preference
|
|
||||||
android:key="app_version"
|
|
||||||
android:title="@string/app_version_title"
|
|
||||||
style="?android:preferenceInformationStyle" />
|
|
||||||
|
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
|
Loading…
Reference in a new issue