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

Commit f72ddef2 authored by Pankaj Kanwar's avatar Pankaj Kanwar Committed by android-build-merger
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." am: 601e3e6f
am: d223132d

Change-Id: I0fe972251784f944c86f1e1e181a7f966d53baec
parents 7ae3e19e d223132d
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_*