diff options
author | twyen <twyen@google.com> | 2017-11-20 14:48:06 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-11-20 17:42:27 -0800 |
commit | f2d88b65fe86a7e2a67958ae0ac7e1961de9ac44 (patch) | |
tree | 054ee34dfd23deeb6175d688b3fa3c272336c918 | |
parent | 85e6949e388c53e4866c0b274c30f334870bf8cb (diff) |
Clear pendingAction when pausing PreCallCoordinator
When resumed runNextAction() will assert that pendingAction is null so if there's any it won't be interrupted. When the coordinator is paused all dialogs and pending actions must be discarded. If the pending action is not properly discarded it will still assert when trying to call finish().
Bug: 69069675
Test: PreCallCoordinatorImplTest
PiperOrigin-RevId: 176420108
Change-Id: Ie89bda3621371a105dc58ff02d83812194a1ea0b
-rw-r--r-- | java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java b/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java index 485823e9a..de32cc2ae 100644 --- a/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java +++ b/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java @@ -76,6 +76,7 @@ public class PreCallCoordinatorImpl implements PreCallCoordinator { currentAction.onDiscard(); } currentAction = null; + pendingAction = null; } void onSaveInstanceState(Bundle outState) { |