Fix potential ClassCastException

Implemented the fix suggested by zjw in pull request #463
https://github.com/k9mail/k-9/pull/463

Fixes issue 5928
This commit is contained in:
cketti 2014-04-07 17:22:20 +02:00
parent 16df038157
commit 6a6e9979e2

View file

@ -121,7 +121,7 @@ public class ChooseFolder extends K9ListActivity {
Intent result = new Intent();
result.putExtra(EXTRA_ACCOUNT, mAccount.getUuid());
result.putExtra(EXTRA_CUR_FOLDER, mFolder);
String destFolderName = (String)((TextView)view).getText();
String destFolderName = ((TextView)view).getText().toString();
if (mHeldInbox != null && getString(R.string.special_mailbox_name_inbox).equals(destFolderName)) {
destFolderName = mHeldInbox;
}