Fix code that was broken when fixing warnings.
This commit is contained in:
parent
b1d8e49d72
commit
f5bb836087
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue