Fix issue where disconnect signal is not propagated to Telecom.
I really have no excuse, I'm ashamed of this.
Bug: 72850702
Test: Manual testing.
Change-Id: I694cf6c9c90a74e4bc2f14cbd4954c5059dc3193
diff --git a/src/com/android/services/telephony/TelephonyConnection.java b/src/com/android/services/telephony/TelephonyConnection.java
index 714ac18..51f97b5 100644
--- a/src/com/android/services/telephony/TelephonyConnection.java
+++ b/src/com/android/services/telephony/TelephonyConnection.java
@@ -448,8 +448,9 @@
@Override
public void onDisconnect(int cause) {
- Log.i(this, "onDisconnect: cause=%s", DisconnectCause.toString(cause));
- mHandler.obtainMessage(MSG_DISCONNECT);
+ Log.i(this, "onDisconnect: callId=%s, cause=%s", getTelecomCallId(),
+ DisconnectCause.toString(cause));
+ mHandler.obtainMessage(MSG_DISCONNECT).sendToTarget();
}
};