Adding bearer_bitmask support.
[android/platform/frameworks/opt/telephony.git] / src / java / com / android / internal / telephony / dataconnection / DataProfile.java
index 45a6b6b..f459f27 100644 (file)
@@ -72,9 +72,9 @@ public class DataProfile {
 
     DataProfile(ApnSetting apn, boolean isRoaming) {
         this(apn.profileId, apn.apn, isRoaming? apn.protocol : apn.roamingProtocol,
-                apn.authType, apn.user, apn.password, apn.bearer == 0 ? TYPE_COMMON :
-                (ServiceState.isCdma(apn.bearer) ? TYPE_3GPP2 : TYPE_3GPP), apn.maxConnsTime,
-                apn.maxConns, apn.waitTime, apn.carrierEnabled);
+                apn.authType, apn.user, apn.password, apn.bearerBitmask == 0 ? TYPE_COMMON :
+                        (ServiceState.hasCdma(apn.bearerBitmask) ? TYPE_3GPP2 : TYPE_3GPP),
+                apn.maxConnsTime, apn.maxConns, apn.waitTime, apn.carrierEnabled);
     }
 
     public static Parcel toParcel(Parcel pc, DataProfile[] dps) {