Add the label to the removal confirmation dialog

Closes #84
This commit is contained in:
Jakob Nixdorf 2017-12-11 11:26:37 +01:00
parent 11b9042a81
commit 48801a3b50
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC
2 changed files with 5 additions and 2 deletions

View file

@ -454,8 +454,11 @@ public class EntriesCardAdapter extends RecyclerView.Adapter<EntryViewHolder>
public void removeItem(final int pos) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
String label = displayedEntries.get(pos).getLabel();
String message = context.getString(R.string.dialog_msg_confirm_delete, label);
builder.setTitle(R.string.dialog_title_remove)
.setMessage(R.string.dialog_msg_confirm_delete)
.setMessage(message)
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {

View file

@ -65,7 +65,7 @@
<string name="dialog_title_last_used">Last used</string>
<string name="dialog_msg_auth">Please enter your device credentials to start andOTP.</string>
<string name="dialog_msg_confirm_delete">Are you sure you want do remove this account?</string>
<string name="dialog_msg_confirm_delete">Are you sure you want do remove the account \"%1$s\"?</string>
<string name="dialog_msg_security_backup_desc">To keep your account information secure this app
only stores it encrypted. Part of the encryption key used for this is stored in the Android