format preferences.xml with Android Studio Ctrl-Alt-L

This commit is contained in:
Hans-Christoph Steiner 2018-04-19 17:30:57 +02:00
parent 40635c36e5
commit c04a867b9b

View File

@ -1,158 +1,158 @@
<?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">
<PreferenceScreen android:title="@string/about_title"> <PreferenceScreen android:title="@string/about_title">
<intent <intent
android:action="android.intent.action.MAIN" android:action="android.intent.action.MAIN"
android:targetPackage="@string/applicationId" android:targetPackage="@string/applicationId"
android:targetClass="org.fdroid.fdroid.AboutActivity" /> android:targetClass="org.fdroid.fdroid.AboutActivity"/>
</PreferenceScreen> </PreferenceScreen>
<PreferenceCategory android:title="@string/preference_category__my_apps"> <PreferenceCategory android:title="@string/preference_category__my_apps">
<PreferenceScreen android:title="@string/preference_manage_installed_apps"> <PreferenceScreen android:title="@string/preference_manage_installed_apps">
<intent <intent
android:action="android.intent.action.MAIN" android:action="android.intent.action.MAIN"
android:targetPackage="@string/applicationId" android:targetPackage="@string/applicationId"
android:targetClass="org.fdroid.fdroid.views.installed.InstalledAppsActivity" /> android:targetClass="org.fdroid.fdroid.views.installed.InstalledAppsActivity"/>
</PreferenceScreen> </PreferenceScreen>
<PreferenceScreen <PreferenceScreen
android:title="@string/menu_manage" android:title="@string/menu_manage"
android:summary="@string/repositories_summary"> android:summary="@string/repositories_summary">
<intent <intent
android:action="android.intent.action.MAIN" android:action="android.intent.action.MAIN"
android:targetPackage="@string/applicationId" android:targetPackage="@string/applicationId"
android:targetClass="org.fdroid.fdroid.views.ManageReposActivity" /> android:targetClass="org.fdroid.fdroid.views.ManageReposActivity"/>
</PreferenceScreen> </PreferenceScreen>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/updates"> <PreferenceCategory android:title="@string/updates">
<ListPreference android:title="@string/update_interval" <ListPreference android:title="@string/update_interval"
android:key="updateInterval" android:key="updateInterval"
android:defaultValue="24" android:defaultValue="24"
android:entries="@array/updateIntervalNames" android:entries="@array/updateIntervalNames"
android:entryValues="@array/updateIntervalValues" /> android:entryValues="@array/updateIntervalValues"/>
<CheckBoxPreference android:title="@string/automatic_scan_wifi" <CheckBoxPreference android:title="@string/automatic_scan_wifi"
android:defaultValue="false" android:defaultValue="false"
android:key="updateOnWifiOnly" /> android:key="updateOnWifiOnly"/>
<CheckBoxPreference android:title="@string/update_auto_download" <CheckBoxPreference android:title="@string/update_auto_download"
android:summary="@string/update_auto_download_summary" android:summary="@string/update_auto_download_summary"
android:defaultValue="false" android:defaultValue="false"
android:key="updateAutoDownload" /> android:key="updateAutoDownload"/>
<CheckBoxPreference android:title="@string/notify" <CheckBoxPreference android:title="@string/notify"
android:defaultValue="true" android:defaultValue="true"
android:key="updateNotify" /> android:key="updateNotify"/>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/display" <PreferenceCategory android:title="@string/display"
android:key="pref_category_display"> android:key="pref_category_display">
<ListPreference android:title="@string/pref_language" <ListPreference android:title="@string/pref_language"
android:key="language"/> android:key="language"/>
<ListPreference android:title="@string/theme" <ListPreference android:title="@string/theme"
android:key="theme" android:key="theme"
android:defaultValue="light" android:defaultValue="light"
android:entries="@array/themeNames" android:entries="@array/themeNames"
android:entryValues="@array/themeValues" /> android:entryValues="@array/themeValues"/>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/appcompatibility"> <PreferenceCategory android:title="@string/appcompatibility">
<CheckBoxPreference android:title="@string/show_incompat_versions" <CheckBoxPreference android:title="@string/show_incompat_versions"
android:defaultValue="false" android:defaultValue="false"
android:key="incompatibleVersions" /> android:key="incompatibleVersions"/>
<CheckBoxPreference android:title="@string/show_root_apps" <CheckBoxPreference android:title="@string/show_root_apps"
android:defaultValue="true" android:defaultValue="true"
android:key="rooted" /> android:key="rooted"/>
<CheckBoxPreference android:title="@string/show_anti_feature_apps" <CheckBoxPreference android:title="@string/show_anti_feature_apps"
android:defaultValue="false" android:defaultValue="false"
android:key="showAntiFeatureApps" /> android:key="showAntiFeatureApps"/>
<CheckBoxPreference android:title="@string/force_touch_apps" <CheckBoxPreference android:title="@string/force_touch_apps"
android:defaultValue="false" android:defaultValue="false"
android:key="ignoreTouchscreen" /> android:key="ignoreTouchscreen"/>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/local_repo"> <PreferenceCategory android:title="@string/local_repo">
<EditTextPreference <EditTextPreference
android:key="localRepoName" android:key="localRepoName"
android:title="@string/local_repo_name" /> android:title="@string/local_repo_name"/>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/proxy" > <PreferenceCategory android:title="@string/proxy">
<CheckBoxPreference <CheckBoxPreference
android:key="useTor" android:key="useTor"
android:summary="@string/useTorSummary" android:summary="@string/useTorSummary"
android:title="@string/useTor" /> android:title="@string/useTor"/>
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="enableProxy" android:key="enableProxy"
android:title="@string/enable_proxy_title" android:title="@string/enable_proxy_title"
android:summary="@string/enable_proxy_summary" /> android:summary="@string/enable_proxy_summary"/>
<EditTextPreference <EditTextPreference
android:key="proxyHost" android:key="proxyHost"
android:title="@string/proxy_host" android:title="@string/proxy_host"
android:summary="@string/proxy_host_summary" android:summary="@string/proxy_host_summary"
android:dependency="enableProxy" /> android:dependency="enableProxy"/>
<EditTextPreference <EditTextPreference
android:key="proxyPort" android:key="proxyPort"
android:title="@string/proxy_port" android:title="@string/proxy_port"
android:summary="@string/proxy_port_summary" android:summary="@string/proxy_port_summary"
android:dependency="enableProxy" /> android:dependency="enableProxy"/>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory <PreferenceCategory
android:key="pref_category_privacy" android:key="pref_category_privacy"
android:title="@string/privacy"> android:title="@string/privacy">
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="preventScreenshots" android:key="preventScreenshots"
android:summary="@string/preventScreenshots_summary" android:summary="@string/preventScreenshots_summary"
android:title="@string/preventScreenshots_title"/> android:title="@string/preventScreenshots_title"/>
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="hideOnLongPressSearch" android:key="hideOnLongPressSearch"
android:summary="@string/hide_on_long_search_press_summary" android:summary="@string/hide_on_long_search_press_summary"
android:title="@string/hide_on_long_search_press_title"/> android:title="@string/hide_on_long_search_press_title"/>
<PreferenceScreen <PreferenceScreen
android:summary="@string/panic_settings_summary" android:summary="@string/panic_settings_summary"
android:title="@string/panic_settings"> android:title="@string/panic_settings">
<intent <intent
android:action="android.intent.action.MAIN" android:action="android.intent.action.MAIN"
android:targetClass="org.fdroid.fdroid.views.panic.PanicPreferencesActivity" android:targetClass="org.fdroid.fdroid.views.panic.PanicPreferencesActivity"
android:targetPackage="@string/applicationId"/> android:targetPackage="@string/applicationId"/>
</PreferenceScreen> </PreferenceScreen>
</PreferenceCategory> </PreferenceCategory>
<PreferenceCategory android:title="@string/other" <PreferenceCategory android:title="@string/other"
android:key="pref_category_other"> android:key="pref_category_other">
<ListPreference android:title="@string/cache_downloaded" <ListPreference android:title="@string/cache_downloaded"
android:key="keepCacheFor" android:key="keepCacheFor"
android:defaultValue="86400000" android:defaultValue="86400000"
android:entries="@array/keepCacheNames" android:entries="@array/keepCacheNames"
android:entryValues="@array/keepCacheValues" /> android:entryValues="@array/keepCacheValues"/>
<CheckBoxPreference android:title="@string/expert" <CheckBoxPreference android:title="@string/expert"
android:defaultValue="false" android:defaultValue="false"
android:key="expert" /> android:key="expert"/>
<CheckBoxPreference <CheckBoxPreference
android:key="unstableUpdates" android:key="unstableUpdates"
android:title="@string/unstable_updates" android:title="@string/unstable_updates"
android:summary="@string/unstable_updates_summary" android:summary="@string/unstable_updates_summary"
android:defaultValue="false" android:defaultValue="false"
android:dependency="expert" /> android:dependency="expert"/>
<CheckBoxPreference <CheckBoxPreference
android:key="keepInstallHistory" android:key="keepInstallHistory"
android:title="@string/keep_install_history" android:title="@string/keep_install_history"
android:summary="@string/keep_install_history_summary" android:summary="@string/keep_install_history_summary"
android:defaultValue="false" android:defaultValue="false"
android:dependency="expert" /> android:dependency="expert"/>
<CheckBoxPreference <CheckBoxPreference
android:key="forceOldIndex" android:key="forceOldIndex"
android:title="@string/force_old_index" android:title="@string/force_old_index"
android:summary="@string/force_old_index_summary" android:summary="@string/force_old_index_summary"
android:defaultValue="false" android:defaultValue="false"
android:dependency="expert" /> android:dependency="expert"/>
<CheckBoxPreference android:title="@string/system_installer" <CheckBoxPreference android:title="@string/system_installer"
android:defaultValue="false" android:defaultValue="false"
android:key="privilegedInstaller" android:key="privilegedInstaller"
android:persistent="false" android:persistent="false"
android:dependency="expert" /> android:dependency="expert"/>
<Preference android:title="@string/uninstall_system" <Preference android:title="@string/uninstall_system"
android:summary="@string/uninstall_system_summary" android:summary="@string/uninstall_system_summary"
android:key="uninstallPrivilegedApp" android:key="uninstallPrivilegedApp"
android:dependency="expert" /> android:dependency="expert"/>
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>