From 0c7dd3cc24e6ab8c2b529a00edb6a2057c048218 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 27 Jan 2020 09:39:23 +0100 Subject: [PATCH] Added summaries --- .../preferences/MainPreferencesFragment.java | 3 ++ .../res/xml/preferences_import_export.xml | 39 ++++++++++++------- app/src/main/res/xml/preferences_storage.xml | 4 +- core/src/main/res/values/strings.xml | 27 ++++++++----- 4 files changed, 49 insertions(+), 24 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java index 5fd38d663..da82d4f8c 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/MainPreferencesFragment.java @@ -103,6 +103,9 @@ public class MainPreferencesFragment extends PreferenceFragmentCompat { .addBreadcrumb(PreferenceActivity.getTitleOfPage(R.xml.preferences_network)); config.index(R.xml.preferences_storage) .addBreadcrumb(PreferenceActivity.getTitleOfPage(R.xml.preferences_storage)); + config.index(R.xml.preferences_import_export) + .addBreadcrumb(PreferenceActivity.getTitleOfPage(R.xml.preferences_storage)) + .addBreadcrumb(PreferenceActivity.getTitleOfPage(R.xml.preferences_import_export)); config.index(R.xml.preferences_autodownload) .addBreadcrumb(PreferenceActivity.getTitleOfPage(R.xml.preferences_network)) .addBreadcrumb(R.string.automation) diff --git a/app/src/main/res/xml/preferences_import_export.xml b/app/src/main/res/xml/preferences_import_export.xml index 72ca82fd5..6489ca493 100644 --- a/app/src/main/res/xml/preferences_import_export.xml +++ b/app/src/main/res/xml/preferences_import_export.xml @@ -2,17 +2,30 @@ - - - - + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/preferences_storage.xml b/app/src/main/res/xml/preferences_storage.xml index fbadf865b..18e2abb31 100644 --- a/app/src/main/res/xml/preferences_storage.xml +++ b/app/src/main/res/xml/preferences_storage.xml @@ -33,5 +33,7 @@ android:title="@string/pref_delete_removes_from_queue_title"/> + android:summary="@string/import_export_summary" + android:key="prefImportExport" + search:ignore="true"/> diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 88fa07049..26ed87537 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -544,7 +544,16 @@ Found in title No results were found for \"%1$s\" - + + Move subscriptions and queue to another device + Database + OPML + HTML + Show your subscriptions to a friend + Transfer your subscriptions to another podcast app + Import your subscriptions from another podcast app + Transfer subscriptions, listened episodes and queue to AntennaPod on another device + Import AntennaPod database from another device Option %1$d Choose a specific file path from the local filesystem. Many applications like Google Mail, Dropbox, Google Drive and most file managers can open OPML files with AntennaPod. @@ -562,6 +571,13 @@ Export successful The exported file was written to:\n\n%1$s Access to external storage is required to read the OPML file + Database import/export + This experimental function can be used to transfer your subscriptions and played episodes to another device.\n\nExported databases can only be imported when using the same version of AntennaPod. Otherwise, this function will lead to unexpected behavior.\n\nAfter importing, episodes might be displayed as downloaded even though they are not. Just press the play button of the episodes to make AntennaPod detect this. + Import + Export + Select file to import + Export successful. + Import successful.\n\nPlease press OK to restart AntennaPod Set sleep timer @@ -755,15 +771,6 @@ Number of columns - - Database import/export - This experimental function can be used to transfer your subscriptions and played episodes to another device.\n\nExported databases can only be imported when using the same version of AntennaPod. Otherwise, this function will lead to unexpected behavior.\n\nAfter importing, episodes might be displayed as downloaded even though they are not. Just press the play button of the episodes to make AntennaPod detect this. - Import - Export - Select file to import - Export successful. - Import successful.\n\nPlease press OK to restart AntennaPod - Play on… Disconnect the cast session