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

Fix code that was broken when fixing warnings.

This commit is contained in:
cketti 2011-01-19 21:00:28 +00:00
parent b1d8e49d72
commit f5bb836087

View File

@ -501,7 +501,7 @@ public class MessageView extends K9Activity implements OnClickListener
{
if (uri == null)
{
restoreMessageReferences(icicle);
restoreMessageReferencesExtra(intent);
}
else
{
@ -563,6 +563,13 @@ public class MessageView extends K9Activity implements OnClickListener
mMessageReferences = (ArrayList<MessageReference>) icicle.getSerializable(EXTRA_MESSAGE_REFERENCES);
}
@SuppressWarnings("unchecked")
private void restoreMessageReferencesExtra(Intent intent)
{
mMessageReference = (MessageReference) intent.getSerializableExtra(EXTRA_MESSAGE_REFERENCE);
mMessageReferences = (ArrayList<MessageReference>) intent.getSerializableExtra(EXTRA_MESSAGE_REFERENCES);
}
private void setupButtonViews()
{
setOnClickListener(R.id.from);