This commit is contained in:
Thomas 2020-09-15 18:58:12 +02:00
parent 6feedf5c24
commit 68dfb1b980
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@
<string name="email_error_domain">Les adresses mails %1$s ne sont pas autorisées !</string>
<string name="create_an_account">Créer un compte</string>
<string name="action_logout">Déconnexion</string>
<string name="logout_account_confirmation">Voulez-vous vraiment déconnecter le compte @%1$s ?</string>
<string name="logout_account_confirmation">Voulez-vous vraiment déconnecter le compte @%1$s@%2$s ?</string>
<string name="action_lists_delete">Supprimer la liste de lecture</string>
<string name="action_lists_confirm_delete">Êtes-vous sûr de vouloir supprimer définitivement cette liste de lecture ?</string>

View File

@ -104,7 +104,7 @@ public class AccountActivity extends AppCompatActivity {
Account finalAccount = account;
logout_button.setOnClickListener(v -> {
AlertDialog.Builder dialogBuilderLogoutAccount = new AlertDialog.Builder(AccountActivity.this);
dialogBuilderLogoutAccount.setMessage(getString(R.string.logout_account_confirmation, finalAccount.getUsername()));
dialogBuilderLogoutAccount.setMessage(getString(R.string.logout_account_confirmation, finalAccount.getUsername(), finalAccount.getInstance()));
dialogBuilderLogoutAccount.setPositiveButton(R.string.action_logout, (dialog, id) -> {
Helper.logoutCurrentUser(AccountActivity.this, finalAccount);
dialog.dismiss();