diff options
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/android/dialer/precall/impl/CallingAccountSelector.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/dialer/precall/impl/CallingAccountSelector.java b/java/com/android/dialer/precall/impl/CallingAccountSelector.java index b22e4d973..b2a659348 100644 --- a/java/com/android/dialer/precall/impl/CallingAccountSelector.java +++ b/java/com/android/dialer/precall/impl/CallingAccountSelector.java @@ -132,6 +132,10 @@ public class CallingAccountSelector implements PreCallAction { phoneNumber, activity.getSystemService(TelecomManager.class).getCallCapablePhoneAccounts()), result -> { + if (isDiscarding) { + // pendingAction is dropped by the coordinator before onDiscard is triggered. + return; + } if (result.getSelectedPhoneAccountHandle().isPresent()) { if (result.getSuggestion().isPresent() |