commit | b7309895fa82beb4b7ceeb5f66ec3b1ecff16738 | [log] [tgz] |
---|---|---|
author | zachh <zachh@google.com> | Tue Apr 03 13:51:52 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Tue Apr 03 17:07:21 2018 -0700 |
tree | 963d83166b27c9e94c8ea03665bcefe8b6ca1a0a | |
parent | 8be68867cd328911a440eec2ba53f52f80aa28c6 [diff] |
Don't deadlock in DialerDatabaseHelper. The fix is to use FutureSerializer instead of synchronizing on the method. FutureSerializer provides the guarantee that the next AsyncCallable won't even be submitted until the ListenableFuture returned by the previous one completes. Bug: 73877234 Test: added sleep to update task, and verified that resuming activity > 5 times does not deadlock the app PiperOrigin-RevId: 191494662 Change-Id: I5dc2bed7e117fd3ba5a3cd6a8c39c82a565ce070