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:
parent
112f39692c
commit
5fc0aa79f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user