From 6a6e9979e2ef3db169812e550078356b81ea4710 Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 7 Apr 2014 17:22:20 +0200 Subject: [PATCH] Fix potential ClassCastException Implemented the fix suggested by zjw in pull request #463 https://github.com/k9mail/k-9/pull/463 Fixes issue 5928 --- src/com/fsck/k9/activity/ChooseFolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/ChooseFolder.java b/src/com/fsck/k9/activity/ChooseFolder.java index 3a408be08..824f4b249 100644 --- a/src/com/fsck/k9/activity/ChooseFolder.java +++ b/src/com/fsck/k9/activity/ChooseFolder.java @@ -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; }