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.
This commit is contained in:
Torsten Grote 2020-10-05 11:19:56 -03:00 committed by Chirayu Desai
parent 1ce2d199fa
commit 37a16ed42e
2 changed files with 5 additions and 2 deletions

View file

@ -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)
}
// ------------------------------------------------------------------------------------

View file

@ -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>