diff options
author | Omkar Kolangade <omkark@codeaurora.org> | 2016-04-07 09:23:18 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2016-04-07 09:25:55 -0700 |
commit | c0388bfd7d50b93be45fdd86de31f7b8bfb9949f (patch) | |
tree | 57f069eec9879f1a90465a6a9601356c1da005ba /src-pre-N | |
parent | 48d780c4be36bc325be92f1f7b7d971d1d1209a0 (diff) |
IMS-VT: Fix race-condition causing preview freeze.
The VideoCall object is made of two binders -
one for sending requests to telecomm and another one for
receiving notifications from telecom. The initialization of
the latter is delayed since a message is posted on a handler
and initialization is done in the handler. getVideoCall()
of InCallUi's Call class deligates the call to telecom's
getVideoCall() function. Since UI events are asynchronous
request to open the camera is sent, however, if the response
is received before the initialization is complete in the handler
the response will be dropped and camera initialization will fail.
Modify the getVideoCall() function of the InCallUI's call to
return valid VideoCall object only when the object is fully
constructed.
BUG=27810744
Change-Id: Id864892bf8452161f2c6f526edd6e4ecc39bf5cd
Diffstat (limited to 'src-pre-N')
0 files changed, 0 insertions, 0 deletions