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:
parent
1ce2d199fa
commit
37a16ed42e
2 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,7 @@ import android.content.Intent
|
||||||
import android.content.pm.PackageInfo
|
import android.content.pm.PackageInfo
|
||||||
import android.os.ParcelFileDescriptor
|
import android.os.ParcelFileDescriptor
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
import com.stevesoltys.seedvault.R
|
||||||
import com.stevesoltys.seedvault.settings.SettingsActivity
|
import com.stevesoltys.seedvault.settings.SettingsActivity
|
||||||
import com.stevesoltys.seedvault.transport.backup.BackupCoordinator
|
import com.stevesoltys.seedvault.transport.backup.BackupCoordinator
|
||||||
import com.stevesoltys.seedvault.transport.restore.RestoreCoordinator
|
import com.stevesoltys.seedvault.transport.restore.RestoreCoordinator
|
||||||
|
@ -49,11 +50,11 @@ class ConfigurableBackupTransport internal constructor(private val context: Cont
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun dataManagementLabel(): String {
|
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 {
|
override fun currentDestinationString(): String {
|
||||||
return "Please file a bug if you see this! 2"
|
return context.getString(R.string.current_destination_string)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
<string name="app_name" translatable="false">Seedvault</string>
|
<string name="app_name" translatable="false">Seedvault</string>
|
||||||
<string name="backup">Backup</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>
|
<string name="restore_backup_button">Restore backup</string>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue