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

Commit 7f610519 authored by xinhe's avatar xinhe
Browse files

enable RTT capability exception

Bug:20299517
Change-Id: I497cc08b90f720d1717e107f93f75fda4212c8a8
parent c8769de8
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -808,7 +808,7 @@ public class RttManager {
        if (mRttCapabilities == null) {
            if(getRttCapabilities() == null) {
                Log.e(TAG, "Can not get RTT capabilities");
                //throw new IllegalStateException("RTT chip is not working");
                throw new IllegalStateException("RTT chip is not working");
            }
        }

@@ -866,6 +866,15 @@ public class RttManager {
        return true;
    }

    /**
     * Request to start an RTT ranging
     *
     * @param params  -- RTT request Parameters
     * @param listener -- Call back to inform RTT result
     * @exception throw IllegalArgumentException when params are illegal
     *            throw IllegalStateException when RttCapabilities do not exist
     */

    public void startRanging(RttParams[] params, RttListener listener) {
        int index  = 0;
        for(RttParams rttParam : params) {