summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorweijiaxu <weijiaxu@google.com>2018-02-26 18:35:30 -0800
committerCopybara-Service <copybara-piper@google.com>2018-02-26 18:36:36 -0800
commita5d048635743a12dc509398c882d8a1ab0e7ebb7 (patch)
treecc6ae109fad97cd49986cc61e67b638bdf15a899 /java
parent5800262b1d39752ed1b296949d4f37c437ae33c2 (diff)
Fix for NonSimulatorConnection listener causing dialer crashing after ending a call.
Bug: 73903013 Test: On a local device. PiperOrigin-RevId: 187114719 Change-Id: I9cd0ee8ee33c5711f68ed78d3181347ae439f2b6
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/simulator/impl/NonSimulatorConnectionListener.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/com/android/dialer/simulator/impl/NonSimulatorConnectionListener.java b/java/com/android/dialer/simulator/impl/NonSimulatorConnectionListener.java
index 333d66c34..66027fc61 100644
--- a/java/com/android/dialer/simulator/impl/NonSimulatorConnectionListener.java
+++ b/java/com/android/dialer/simulator/impl/NonSimulatorConnectionListener.java
@@ -30,6 +30,11 @@ final class NonSimulatorConnectionListener implements SimulatorConnection.Listen
@Override
public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) {
switch (event.type) {
+ case Event.STATE_CHANGE:
+ LogUtil.i(
+ "SimulatorVoiceCall.onEvent",
+ String.format("state changed from %s to %s ", event.data1, event.data2));
+ break;
case Event.REJECT:
connection.setDisconnected(new DisconnectCause(DisconnectCause.REJECTED));
break;