diff options
author | calderwoodra <calderwoodra@google.com> | 2018-03-02 19:19:45 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-05 10:50:48 -0800 |
commit | eb3ae0a822a408d2b48c6d91e68bc649b3791ab8 (patch) | |
tree | a15cb23aa34b43b6c6c62df2af85b97012c5088e /java/com/android/dialer/calldetails/ReportDialogFragment.java | |
parent | 1efd9579502d164bac214006d582ca26e2bc123e (diff) |
Check if the activity is still alive before refreshing unread tab counts.
My hypothesis is that there is a race condition where the call log changes and
we are leaving the activity before the content observer is unregistered or the
loader it starts is finished. This results in a callback calling #fetchCalls
while Dialer is in the background, resulting in a crash. This change will
confirm my hypothesis.
Even if my hypothesis is incorrect, we have similar checks throughout this
class which indicates to me that some issue exists here and that this check is
safe to do.
Bug: 73972084
Test: n/a
PiperOrigin-RevId: 187700318
Change-Id: I98cea86b5b7041c4f4aac09544445aaade6bfd40
Diffstat (limited to 'java/com/android/dialer/calldetails/ReportDialogFragment.java')
0 files changed, 0 insertions, 0 deletions