Use telephony-common - DO NOT MERGE
Change-Id: Ic95136fd5934afdd53a08bfd640d40add67fdb44
This commit is contained in:
committed by
Jean-Baptiste Queru
parent
51b2fef235
commit
9ad4a89877
@@ -40,6 +40,7 @@ import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
||||
import com.android.internal.telephony.Phone;
|
||||
import com.android.internal.telephony.PhoneConstants;
|
||||
import com.android.internal.telephony.RILConstants;
|
||||
import com.android.internal.telephony.TelephonyProperties;
|
||||
|
||||
@@ -170,7 +171,7 @@ public class ApnEditor extends PreferenceActivity
|
||||
// types. (This screen is not normally accessible on CDMA phones, but is useful for
|
||||
// testing.)
|
||||
TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
|
||||
if (tm.getCurrentPhoneType() == Phone.PHONE_TYPE_CDMA) {
|
||||
if (tm.getCurrentPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
|
||||
mRoamingProtocol.setOnPreferenceChangeListener(this);
|
||||
} else {
|
||||
getPreferenceScreen().removePreference(mRoamingProtocol);
|
||||
|
Reference in New Issue
Block a user