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

Commit 601e3e6f authored by Pankaj Kanwar's avatar Pankaj Kanwar Committed by Gerrit Code Review
Browse files

Merge "Create Public API which exposes if the device is in a state where...

Merge "Create Public API which exposes if the device is in a state where simultaneous voice and data are possible."
parents db873e7e 9f914cd7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1821,6 +1821,15 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
        }
    }

    /**
     * @return true, if the device is in a state where both voice and data
     * are supported simultaneously. This can change based on location or network condition.
     */
    public boolean isConcurrentVoiceAndDataAllowed() {
        ServiceStateTracker sst = getServiceStateTracker();
        return sst == null ? false : sst.isConcurrentVoiceAndDataAllowed();
    }

    /**
     *  Requests to set the CDMA roaming preference
     * @param cdmaRoamingType one of  CDMA_RM_*