diff options
author | maxwelb <maxwelb@google.com> | 2017-10-10 17:17:18 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-10-11 07:09:33 -0700 |
commit | 36a5f1a127ca18869cd25cef0315076591a0b518 (patch) | |
tree | d51a48886fe21dc7b2ed4ac17fbae3dd382c5f79 /java/com/android/contacts/common/res/values-sw | |
parent | 58cefb413c11c02d0c1be8504df027724617f175 (diff) |
Handle race condition with CallComposerActivity.onBackPressed
For fast users/testing suites, it's possible to hit a race condition
where onBackPressed is called multiple times in a way that allows the
second call to endCallComposerSession to happen and crash.
This CL fixes the issue by checking that the session still exists prior
to calling endCallComposerSession.
I tried to write tests for this, but since the code guards against this
from happening, I wasn't able to get the code into a situation to cause
the crash.
Bug: 64136293
Test: none
PiperOrigin-RevId: 171758119
Change-Id: Ie12fd2f4390329b9bebb503fa3cf0f26d3bc1caf
Diffstat (limited to 'java/com/android/contacts/common/res/values-sw')
0 files changed, 0 insertions, 0 deletions