Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9db99a4d authored by Hung-ying Tyan's avatar Hung-ying Tyan
Browse files

Make SipService broadcast SIP_SERVICE_UP when it's up.

http://b/issue?id=3062010

Change-Id: I13419fa3a8fdfba1977260f703e4dcaa42a6606c
parent 70f1a3b8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -64,6 +64,13 @@ public class SipManager {
    /** Part of the incoming call intent. */
    public static final String EXTRA_OFFER_SD = "android:sipOfferSD";

    /**
     * Action to broadcast when SipService is up.
     * Internal use only.
     * @hide
     */
    public static final String ACTION_SIP_SERVICE_UP =
            "android.net.sip.SIP_SERVICE_UP";
    /**
     * Action string for the incoming call intent for the Phone app.
     * Internal use only.
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ public final class SipService extends ISipService.Stub {
    public static void start(Context context) {
        if (SipManager.isApiSupported(context)) {
            ServiceManager.addService("sip", new SipService(context));
            context.sendBroadcast(new Intent(SipManager.ACTION_SIP_SERVICE_UP));
            Log.i(TAG, "SIP service started");
        }
    }