Make draft loading happen on serial executor

This fixes an issue where it loads drafts too quickly on orientation
change (and a previous save has not completed). The save was explicitly
put on the serial executor for this reason, but the load task was
missed. whoops.

Bug: 5361711
Change-Id: Ic764e15deb7cd8b88fa4f87e7cbdf435d7d79c80
This commit is contained in:
Ben Komalo 2011-09-26 17:01:24 -07:00
parent 112f39692c
commit 5fc0aa79f6

View File

@ -850,7 +850,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
Utility.showToast(MessageCompose.this, R.string.error_loading_message_body);
finish();
}
}).executeParallel((Void[]) null);
}).executeSerial((Void[]) null);
}
@VisibleForTesting
@ -948,7 +948,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
finish();
}
}
}).executeParallel((Void[]) null);
}).executeSerial((Void[]) null);
}
/**
@ -1103,7 +1103,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
}
callback.onAttachmentLoaded(attachments);
}
}.executeParallel((Void[]) null);
}.executeSerial((Void[]) null);
}
@Override