Skip to content

Commit

Permalink
remove duplicate string
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-mh committed May 15, 2024
1 parent eb9da6b commit ea02007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion AuthenticatorPro.Droid/Resources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
-->

<string name="restoreFormatError">The backup could not be restored</string>
<string name="restorePasswordError">The password is incorrect</string>
<string name="cameraPermissionError">The camera permission must be granted in order to scan a QR code</string>
<string name="googlePlayNotInstalledError">Google Play is not installed on your device</string>
<string name="filePickerMissing">Cannot open file picker. A file manager must be installed.</string>
Expand Down
4 changes: 2 additions & 2 deletions AuthenticatorPro.Droid/src/Activity/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ private void PromptForRestorePassword(byte[] data)
catch (Exception e)
{
sheet.Error = GetString(e is BackupPasswordException
? Resource.String.restorePasswordError : Resource.String.restoreFormatError);
? Resource.String.passwordIncorrect: Resource.String.restoreFormatError);
_log.Error(e, "Error decrypting file");
sheet.SetLoading(false);
return;
Expand Down Expand Up @@ -1443,7 +1443,7 @@ void ShowPasswordSheet()
{
_log.Error(e, "Error converting backup for restore");
sheet.Error = GetString(e is BackupPasswordException
? Resource.String.restorePasswordError : Resource.String.importError);
? Resource.String.passwordIncorrect : Resource.String.importError);
sheet.SetLoading(false);
}
};
Expand Down

0 comments on commit ea02007

Please sign in to comment.