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

Commit c3f8b068 authored by Alex Koskovich's avatar Alex Koskovich Committed by LuK1337
Browse files

Restore getSubIdFromNetworkRequest method

Commit 856a6604 removed it but
QTI telephony still requires this method to be present.

Change-Id: I5ee25f3337dfd1958ba16340f25712ddd9486857
parent 216a4e21
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -999,6 +999,11 @@ public class PhoneSwitcher extends Handler {
        return phoneId;
    }

    protected int getSubIdFromNetworkRequest(NetworkRequest networkRequest) {
        NetworkSpecifier specifier = networkRequest.networkCapabilities.getNetworkSpecifier();
        return getSubIdFromNetworkSpecifier(specifier);
    }

    protected int getSubIdFromNetworkSpecifier(NetworkSpecifier specifier) {
        if (specifier == null) {
            return DEFAULT_SUBSCRIPTION_ID;