Add Phone.getPhoneType() operation.
This routine returns integer values defined in the Phone interface, derived from RILConstants values. Direct references to the RILConstants are replaced by references to these new ones for consistency. API CHANGE: unhide TelephonyManager.PHONE_TYPE_CDMA Addresses issue: http://buganizer/issue?id=1905415 Change-Id: Icfec6d457231b098c031677a66770b5e57be4a44
This commit is contained in:
@@ -676,7 +676,7 @@ public abstract class BaseCommands implements CommandsInterface {
|
||||
mRadioTechnologyChangedRegistrants.notifyRegistrants();
|
||||
}
|
||||
|
||||
if (mState.isGsm() && !oldState.isOn() && (mPhoneType == RILConstants.CDMA_PHONE)) {
|
||||
if (mState.isGsm() && !oldState.isOn() && (mPhoneType == Phone.PHONE_TYPE_CDMA)) {
|
||||
Log.d(LOG_TAG,"Notifying: radio technology change CDMA OFF to GSM");
|
||||
mRadioTechnologyChangedRegistrants.notifyRegistrants();
|
||||
}
|
||||
@@ -686,7 +686,7 @@ public abstract class BaseCommands implements CommandsInterface {
|
||||
mRadioTechnologyChangedRegistrants.notifyRegistrants();
|
||||
}
|
||||
|
||||
if (mState.isCdma() && !oldState.isOn() && (mPhoneType == RILConstants.GSM_PHONE)) {
|
||||
if (mState.isCdma() && !oldState.isOn() && (mPhoneType == Phone.PHONE_TYPE_GSM)) {
|
||||
Log.d(LOG_TAG,"Notifying: radio technology change GSM OFF to CDMA");
|
||||
mRadioTechnologyChangedRegistrants.notifyRegistrants();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user