From f2d88b65fe86a7e2a67958ae0ac7e1961de9ac44 Mon Sep 17 00:00:00 2001 From: twyen Date: Mon, 20 Nov 2017 14:48:06 -0800 Subject: 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 --- java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java | 1 + 1 file changed, 1 insertion(+) (limited to 'java/com') 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) { -- cgit v1.2.3