Create new settings category: Backup and restore
Following settings have been move to the new category: - import database (from ContenttSettings) - export database (from ContenttSettings) - reset settings (from DebugSettings)
This commit is contained in:
parent
ad0855ac83
commit
f2e352832a
11 changed files with 304 additions and 269 deletions
24
app/src/main/res/xml/backup_restore_settings.xml
Normal file
24
app/src/main/res/xml/backup_restore_settings.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/settings_category_backup_restore_title">
|
||||
<Preference
|
||||
android:key="@string/import_data"
|
||||
android:summary="@string/import_data_summary"
|
||||
android:title="@string/import_data_title"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="@string/export_data"
|
||||
android:summary="@string/export_data_summary"
|
||||
android:title="@string/export_data_title"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="@string/reset_settings"
|
||||
android:title="@string/settings_category_reset_title"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
</PreferenceScreen>
|
||||
|
|
@ -124,20 +124,6 @@
|
|||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="@string/import_data"
|
||||
android:summary="@string/import_data_summary"
|
||||
android:title="@string/import_data_title"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="@string/export_data"
|
||||
android:summary="@string/export_data_summary"
|
||||
android:title="@string/export_data_title"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:layout="@layout/settings_category_header_layout"
|
||||
android:title="@string/settings_category_feed_title"
|
||||
|
|
|
|||
|
|
@ -71,9 +71,4 @@
|
|||
android:title="@string/create_error_notification"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
<Preference
|
||||
android:key="@string/reset_settings"
|
||||
android:title="@string/settings_category_reset_title"
|
||||
app:singleLineTitle="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
</PreferenceScreen>
|
||||
|
|
|
|||
|
|
@ -47,6 +47,12 @@
|
|||
android:title="@string/settings_category_updates_title"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.schabi.newpipe.settings.BackupRestoreSettingsFragment"
|
||||
android:icon="@drawable/ic_settings_backup_restore"
|
||||
android:title="@string/settings_category_backup_restore_title"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<PreferenceScreen
|
||||
android:fragment="org.schabi.newpipe.settings.DebugSettingsFragment"
|
||||
android:icon="@drawable/ic_bug_report"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue