From 9d2276aa0ae58b9b345c28720f172ef1d3e8addd Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Wed, 30 Jun 2010 00:41:27 +0000 Subject: [PATCH] Fixes Issue 1790 Refresh dialog "message" each time the dialog is raised. --- src/com/fsck/k9/activity/Accounts.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/Accounts.java b/src/com/fsck/k9/activity/Accounts.java index 553c82ea3..96d189074 100644 --- a/src/com/fsck/k9/activity/Accounts.java +++ b/src/com/fsck/k9/activity/Accounts.java @@ -541,13 +541,22 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC @Override public void onPrepareDialog(int id, Dialog d) { + + AlertDialog alert = (AlertDialog) d; switch (id) { case DIALOG_REMOVE_ACCOUNT: - AlertDialog alert = (AlertDialog) d; alert.setMessage(getString(R.string.account_delete_dlg_instructions_fmt, mSelectedContextAccount.getDescription())); break; + case DIALOG_CLEAR_ACCOUNT: + alert.setMessage(getString(R.string.account_clear_dlg_instructions_fmt, + mSelectedContextAccount.getDescription())); + break; + case DIALOG_RECREATE_ACCOUNT: + alert.setMessage(getString(R.string.account_recreate_dlg_instructions_fmt, + mSelectedContextAccount.getDescription())); + break; } super.onPrepareDialog(id, d);