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

Commit bd7530a5 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Gerrit Code Review
Browse files

Merge "Add API to get FDN available status"

parents 759520a9 b1e6ebf8
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -128,6 +128,15 @@ public class IccCard {
        return false;
        return false;
    }
    }


    /**
     * Check whether fdn (fixed dialing number) service is available.
     * @return true if ICC fdn service available
     *         false if ICC fdn service not available
     */
    public boolean getIccFdnAvailable() {
        return false;
    }

    /**
    /**
     * Check whether ICC fdn (fixed dialing number) is enabled
     * Check whether ICC fdn (fixed dialing number) is enabled
     * This is a sync call which returns the cached pin enabled state
     * This is a sync call which returns the cached pin enabled state
+7 −0
Original line number Original line Diff line number Diff line
@@ -760,6 +760,13 @@ public class UiccProfile extends IccCard {
        }
        }
    }
    }


    @Override
    public boolean getIccFdnAvailable() {
        synchronized (mLock) {
            return mUiccApplication != null && mUiccApplication.getIccFdnAvailable();
        }
    }

    @Override
    @Override
    public boolean getIccPin2Blocked() {
    public boolean getIccPin2Blocked() {
        /* defaults to disabled */
        /* defaults to disabled */