From 948cd597d8eab58e110d73c81ed561969417c4fb Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 5 Oct 2020 11:19:56 -0300 Subject: [PATCH] Show proper transport labels for OS transport selection If an AOSP-based ROM allows the user to choose a backup transport, these labels will be shown. --- .../seedvault/transport/ConfigurableBackupTransport.kt | 5 +++-- app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransport.kt b/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransport.kt index cd32d69c..f850a785 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransport.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransport.kt @@ -9,6 +9,7 @@ import android.content.Intent import android.content.pm.PackageInfo import android.os.ParcelFileDescriptor import android.util.Log +import com.stevesoltys.seedvault.R import com.stevesoltys.seedvault.settings.SettingsActivity import com.stevesoltys.seedvault.transport.backup.BackupCoordinator import com.stevesoltys.seedvault.transport.restore.RestoreCoordinator @@ -49,11 +50,11 @@ class ConfigurableBackupTransport internal constructor(private val context: Cont } override fun dataManagementLabel(): String { - return "Please file a bug if you see this! 1" + return context.getString(R.string.data_management_label) } override fun currentDestinationString(): String { - return "Please file a bug if you see this! 2" + return context.getString(R.string.current_destination_string) } // ------------------------------------------------------------------------------------ diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e797e5e1..cbf30be9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,6 +2,8 @@ Seedvault Backup + Seedvault Backup + Backup status and settings Restore backup