Aegis/app/src/main/res/xml/preferences.xml
2019-06-22 09:58:35 +02:00

128 lines
5.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:title="@string/settings">
<PreferenceCategory
android:title="@string/pref_appearance_group_title"
app:iconSpaceReserved="false">
<Preference
android:defaultValue="false"
android:key="pref_dark_mode"
android:title="@string/pref_select_theme_title"
app:iconSpaceReserved="false"/>
<Preference
android:defaultValue="false"
android:key="pref_view_mode"
android:title="@string/pref_view_mode_title"
app:iconSpaceReserved="false"/>
<ListPreference
android:key="pref_lang"
android:title="@string/pref_lang_title"
android:summary="%s"
android:entries="@array/pref_lang_entries"
android:entryValues="@array/pref_lang_values"
android:defaultValue="system"
app:iconSpaceReserved="false"/>
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_account_name"
android:title="@string/pref_account_name_title"
android:summary="@string/pref_account_name_summary"
app:iconSpaceReserved="false"/>
<Preference
android:key="pref_groups"
android:title="@string/preference_manage_groups"
android:summary="@string/preference_manage_groups_summary"
app:iconSpaceReserved="false"/>
</PreferenceCategory>
<PreferenceCategory
android:title="@string/pref_security_group_title"
app:iconSpaceReserved="false">
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="true"
android:key="pref_secure_screen"
android:title="@string/pref_secure_screen_title"
android:summary="@string/pref_secure_screen_summary"
app:iconSpaceReserved="false"/>
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="true"
android:key="pref_auto_lock"
android:title="@string/pref_auto_lock_title"
android:summary="@string/pref_auto_lock_summary"
app:iconSpaceReserved="false"/>
<androidx.preference.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_tap_to_reveal"
android:title="@string/pref_tap_to_reveal_title"
android:summary="@string/pref_tap_to_reveal_summary"
app:iconSpaceReserved="false"/>
<Preference
android:key="pref_tap_to_reveal_time"
android:title="@string/pref_tap_to_reveal_time_title"
android:dependency="pref_tap_to_reveal"
app:iconSpaceReserved="false"/>
<!--<EditTextPreference
android:key="pref_timeout"
android:title="@string/pref_timeout_title"
android:summary="@string/pref_timeout_summary"
android:inputType="number"
android:defaultValue="30"
android:dialogTitle="Set number of seconds of inactivity before Aegis locks the database"
app:iconSpaceReserved="false"/>-->
<com.beemdevelopment.aegis.ui.preferences.SwitchPreference
android:key="pref_encryption"
android:title="@string/pref_encryption_title"
android:summary="@string/pref_encryption_summary"
android:persistent="false"
app:iconSpaceReserved="false"/>
<Preference
android:key="pref_password"
android:title="@string/pref_set_password_title"
android:summary="@string/pref_set_password_summary"
android:dependency="pref_encryption"
app:iconSpaceReserved="false"/>
<com.beemdevelopment.aegis.ui.preferences.SwitchPreference
android:key="pref_fingerprint"
android:title="@string/pref_fingerprint_title"
android:summary="@string/pref_fingerprint_summary"
android:persistent="false"
app:iconSpaceReserved="false"/>
<Preference
android:key="pref_slots"
android:title="@string/pref_slots_title"
android:summary="@string/pref_slots_summary"
app:iconSpaceReserved="false"/>
</PreferenceCategory>
<PreferenceCategory
android:title="@string/pref_tools_group_title"
app:iconSpaceReserved="false">
<Preference
android:key="pref_import"
android:title="@string/pref_import_file_title"
android:summary="@string/pref_import_file_summary"
app:iconSpaceReserved="false"/>
<Preference
android:key="pref_import_app"
android:title="@string/pref_import_app_title"
android:summary="@string/pref_import_app_summary"
app:iconSpaceReserved="false"/>
<Preference
android:key="pref_export"
android:title="@string/pref_export_title"
android:summary="@string/pref_export_summary"
app:iconSpaceReserved="false"/>
</PreferenceCategory>
</androidx.preference.PreferenceScreen>