diff --git a/api/current.xml b/api/current.xml index d99d3cae4096c..b7e967aadff05 100644 --- a/api/current.xml +++ b/api/current.xml @@ -96518,32 +96518,6 @@ - - - - - - - - - - - - - - - - - - 0) { - String ringtoneUri = - Settings.System.DEFAULT_RINGTONE_URI.toString(); - mRingtone = RingtoneManager.getRingtone(mContext, - Uri.parse(ringtoneUri)); - mRingtone.play(); - } - } - - private void stopRinging() { - ((Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE)) - .cancel(); - if (mRingtone != null) mRingtone.stop(); - } - private void throwSipException(Throwable throwable) throws SipException { if (throwable instanceof SipException) { throw (SipException) throwable; diff --git a/voip/java/android/net/sip/SipManager.java b/voip/java/android/net/sip/SipManager.java index 2f03e34690d30..e1b1d10f84f5a 100644 --- a/voip/java/android/net/sip/SipManager.java +++ b/voip/java/android/net/sip/SipManager.java @@ -350,17 +350,6 @@ public class SipManager { } } - /** - * The method calls {@code takeAudioCall(incomingCallIntent, - * listener, true}. - * - * @see #takeAudioCall(Intent, SipAudioCall.Listener, boolean) - */ - public SipAudioCall takeAudioCall(Intent incomingCallIntent, - SipAudioCall.Listener listener) throws SipException { - return takeAudioCall(incomingCallIntent, listener, true); - } - /** * Creates a {@link SipAudioCall} to take an incoming call. Before the call * is returned, the listener will receive a @@ -374,8 +363,7 @@ public class SipManager { * @throws SipException if calling the SIP service results in an error */ public SipAudioCall takeAudioCall(Intent incomingCallIntent, - SipAudioCall.Listener listener, boolean ringtoneEnabled) - throws SipException { + SipAudioCall.Listener listener) throws SipException { if (incomingCallIntent == null) return null; String callId = getCallId(incomingCallIntent); @@ -394,7 +382,6 @@ public class SipManager { if (session == null) return null; SipAudioCall call = new SipAudioCall( mContext, session.getLocalProfile()); - call.setRingtoneEnabled(ringtoneEnabled); call.attachCall(new SipSession(session), offerSd); call.setListener(listener); return call;