Loading src/java/com/android/internal/telephony/data/DataProfileManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -983,8 +983,12 @@ public class DataProfileManager extends Handler { return true; } // Only check the APN from the profile is compatible or not. // Check the APN from the profile is compatible and matches preferred data profile set id. return mAllDataProfiles.stream() .filter(dp -> dp.getApnSetting() != null && (dp.getApnSetting().getApnSetId() == Telephony.Carriers.MATCH_ALL_APN_SET_ID || dp.getApnSetting().getApnSetId() == mPreferredDataProfileSetId)) .anyMatch(dp -> areDataProfileSharingApn(dataProfile, dp)); } Loading tests/telephonytests/src/com/android/internal/telephony/data/DataProfileManagerTest.java +324 −6 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
src/java/com/android/internal/telephony/data/DataProfileManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -983,8 +983,12 @@ public class DataProfileManager extends Handler { return true; } // Only check the APN from the profile is compatible or not. // Check the APN from the profile is compatible and matches preferred data profile set id. return mAllDataProfiles.stream() .filter(dp -> dp.getApnSetting() != null && (dp.getApnSetting().getApnSetId() == Telephony.Carriers.MATCH_ALL_APN_SET_ID || dp.getApnSetting().getApnSetId() == mPreferredDataProfileSetId)) .anyMatch(dp -> areDataProfileSharingApn(dataProfile, dp)); } Loading
tests/telephonytests/src/com/android/internal/telephony/data/DataProfileManagerTest.java +324 −6 File changed.Preview size limit exceeded, changes collapsed. Show changes