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

Commit 72d7bcb8 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Fix pi-dev-plus-aosp breakage

pi-dev-plus-aosp depends on internal ImsManager API that was
removed. Re-add to get rid of build error.

Test: Manual
Change-Id: I99d82fdac7e7f3b8204df42299481cdee6f40163
parent cc931ab8
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -917,6 +917,17 @@ public class ImsManager {
        setWfcNonPersistent(enabled, getWfcMode(isRoaming), isRoaming);
    }

    /**
     * @deprecated Does not take into account roaming state of the network, use
     * {@link #setWfcNonPersistent(boolean, int, boolean)}.
     */
    public void setWfcNonPersistent(boolean enabled, int wfcMode) {
        TelephonyManager tm = (TelephonyManager)
                mContext.getSystemService(Context.TELEPHONY_SERVICE);
        boolean isRoaming = tm.isNetworkRoaming(getSubId());
        setWfcNonPersistent(enabled, wfcMode, isRoaming);
    }

    /**
     * Non-persistently change WFC enabled setting and WFC mode for slot
     *
@@ -994,11 +1005,9 @@ public class ImsManager {

    /**
     * Change persistent WFC preference setting for slot when not roaming.
     * @deprecated Use {@link #setWfcMode(int, int) instead}.
     * @deprecated Use {@link #setWfcMode(int, boolean)} instead.
     */
    public void setWfcMode(int wfcMode) {
        TelephonyManager tm = (TelephonyManager)
                mContext.getSystemService(Context.TELEPHONY_SERVICE);
        setWfcMode(wfcMode, false /*isRoaming*/);
    }