1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Fixes Issue 1790

Refresh dialog "message" each time the dialog is raised.
This commit is contained in:
Daniel Applebaum 2010-06-30 00:41:27 +00:00
parent 3c146c5a7f
commit 9d2276aa0a

View File

@ -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);