From 37a16ed42ea86f5185b9299c9d9f1e6a35a3d4c0 Mon Sep 17 00:00:00 2001
From: Torsten Grote <t@grobox.de>
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 6cc9dc50..a9d44ac7 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -2,6 +2,8 @@
 
     <string name="app_name" translatable="false">Seedvault</string>
     <string name="backup">Backup</string>
+    <string name="data_management_label">Seedvault Backup</string>
+    <string name="current_destination_string">Backup status and settings</string>
 
     <string name="restore_backup_button">Restore backup</string>