Fix for quick response option not showing up for call waiting

Text messages for a call are loaded by an asynchronous task and are
not populated immediately for a new call.

For the first incoming call, this is not an issue because they are
usually loaded by the time Telecomm binds to InCallService, and
the first call is added to InCallService.

For the second(and subsequent calls) however, they are added to
InCallService immediately before the text messages are loaded. This
means that onIncomingCall is called in AnswerPresenter with a null
list of text messages, which causes it to hide the quick response option.

This CL refactors AnswerPresenter to also update the displayed options
when a change in call state occurs, so that it shows the quick response
option when the list of text messages are eventually loaded and sent to
InCallService.

Bug: 17426049
Change-Id: Id5209b91013b52c5ede5a5dcd4db8a981664c285
2 files changed
tree: 60827ff39fc17a0250d1cd9aad54ee5b35ec7721
  1. InCallUI/