mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Inlined methods that were extracted to use
@SuppressWarnings("unchecked"). That's now unnecessary after the Serializable -> Parcelable switch
This commit is contained in:
parent
ff1f9b5fb4
commit
a79b7ea93c
@ -296,11 +296,13 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
Intent intent = getIntent();
|
||||
Uri uri = intent.getData();
|
||||
if (icicle != null) {
|
||||
restoreMessageReferences(icicle);
|
||||
mMessageReference = icicle.getParcelable(EXTRA_MESSAGE_REFERENCE);
|
||||
mMessageReferences = icicle.getParcelableArrayList(EXTRA_MESSAGE_REFERENCES);
|
||||
mPgpData = (PgpData) icicle.getSerializable(STATE_PGP_DATA);
|
||||
} else {
|
||||
if (uri == null) {
|
||||
restoreMessageReferencesExtra(intent);
|
||||
mMessageReference = intent.getParcelableExtra(EXTRA_MESSAGE_REFERENCE);
|
||||
mMessageReferences = intent.getParcelableArrayListExtra(EXTRA_MESSAGE_REFERENCES);
|
||||
} else {
|
||||
List<String> segmentList = uri.getPathSegments();
|
||||
if (segmentList.size() != 3) {
|
||||
@ -346,16 +348,6 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
displayMessage(mMessageReference);
|
||||
}
|
||||
|
||||
private void restoreMessageReferences(Bundle icicle) {
|
||||
mMessageReference = icicle.getParcelable(EXTRA_MESSAGE_REFERENCE);
|
||||
mMessageReferences = icicle.getParcelableArrayList(EXTRA_MESSAGE_REFERENCES);
|
||||
}
|
||||
|
||||
private void restoreMessageReferencesExtra(Intent intent) {
|
||||
mMessageReference = intent.getParcelableExtra(EXTRA_MESSAGE_REFERENCE);
|
||||
mMessageReferences = intent.getParcelableArrayListExtra(EXTRA_MESSAGE_REFERENCES);
|
||||
}
|
||||
|
||||
private void setupButtonViews() {
|
||||
setOnClickListener(R.id.from);
|
||||
setOnClickListener(R.id.reply);
|
||||
|
Loading…
Reference in New Issue
Block a user