diff options
Diffstat (limited to 'telephony')
| -rw-r--r-- | telephony/java/com/android/internal/telephony/CallManager.java | 6 | ||||
| -rwxr-xr-x | telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallManager.java b/telephony/java/com/android/internal/telephony/CallManager.java index 980affa..12df44e 100644 --- a/telephony/java/com/android/internal/telephony/CallManager.java +++ b/telephony/java/com/android/internal/telephony/CallManager.java @@ -691,8 +691,8 @@ public final class CallManager { * Stop the playing DTMF tone. Ignored if there is no playing DTMF * tone or no active call. */ - public void stopDtmf(Phone phone) { - phone.stopDtmf(); + public void stopDtmf() { + if (hasActiveFgCall()) getFgPhone().stopDtmf(); } /** @@ -709,7 +709,7 @@ public final class CallManager { * @param onComplete is the callback message when the action is processed by BP * */ - public boolean sendBurstDtmf(Phone phone, String dtmfString, int on, int off, Message onComplete) { + public boolean sendBurstDtmf(String dtmfString, int on, int off, Message onComplete) { if (hasActiveFgCall()) { getActiveFgCall().getPhone().sendBurstDtmf(dtmfString, on, off, onComplete); return true; diff --git a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java index b39556a..8d77f76 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java +++ b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java @@ -224,6 +224,7 @@ public class CDMAPhone extends PhoneBase { mCM.unregisterForNVReady(this); //EVENT_NV_READY mSST.unregisterForNetworkAttach(this); //EVENT_REGISTERED_TO_NETWORK mCM.unSetOnSuppServiceNotification(this); + removeCallbacks(mExitEcmRunnable); mPendingMmis.clear(); @@ -256,6 +257,7 @@ public class CDMAPhone extends PhoneBase { this.mSST = null; this.mEriManager = null; this.mCcatService = null; + this.mExitEcmRunnable = null; } protected void finalize() { |
