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

Commit cfc78eea authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Return starlink error code for outgoing call if eligibility is true.

Bug: 391927008
Test: to-do
Flag: EXEMPT bugfix
Change-Id: I03f0cfee47e19ebac13e7fe6c6cd034140c43eef
parent d2be5eb3
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -6154,6 +6154,22 @@ public class SatelliteController extends Handler {
        }
    }

    /** Return last notified ntn eligibility. */
    public boolean getLastNotifiedNtnEligibility(@NonNull Phone phone) {
        int selectedSatelliteSubId = getSelectedSatelliteSubId();
        int subId = phone.getSubId();
        if (subId != selectedSatelliteSubId) {
            plogd("getLastNotifiedNtnEligibility: subId=" + subId
                    +  " does not match selectedSatelliteSubId=" + selectedSatelliteSubId);
            return false;
        }

        synchronized (mSatellitePhoneLock) {
            plogd("getLastNotifiedNtnEligibility: return " + mLastNotifiedNtnEligibility);
            return mLastNotifiedNtnEligibility;
        }
    }

    private long getSatelliteConnectionHysteresisTimeMillis(int subId) {
        PersistableBundle config = getPersistableBundle(subId);
        return (config.getInt(