Use localized text for backup prompt

This commit is contained in:
MrLetsplay 2023-09-24 21:42:43 +02:00
parent 83c69fdd3b
commit 831a1a9c20
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -200,7 +200,7 @@ public class SettingsFragment extends NamedFragment {
binding.settingsCreateBackup.setOnClickListener(view -> { binding.settingsCreateBackup.setOnClickListener(view -> {
new StyledDialogBuilder(requireContext()) new StyledDialogBuilder(requireContext())
.setItems(new String[]{"Create with current password", "Create with custom password"}, (d, which) -> { .setItems(R.array.backup_create, (d, which) -> {
switch(which) { switch(which) {
case 0: case 0:
OTPDatabase.promptLoadDatabase(requireActivity(), () -> { OTPDatabase.promptLoadDatabase(requireActivity(), () -> {