Loading src/java/com/android/internal/telephony/dataconnection/DcTracker.java +3 −3 Original line number Diff line number Diff line Loading @@ -2269,15 +2269,15 @@ public final class DcTracker extends DcTrackerBase { IccRecords r = mIccRecords.get(); String operator = (r != null) ? r.getOperatorNumeric() : ""; if (operator != null) { String selection = "numeric = '" + operator + "'"; String orderBy = "_id"; String selection = Telephony.Carriers.NUMERIC + " = '" + operator + "'"; // query only enabled apn. // carrier_enabled : 1 means enabled apn, 0 disabled apn. // selection += " and carrier_enabled = 1"; if (DBG) log("createAllApnList: selection=" + selection); // ORDER BY Telephony.Carriers._ID ("_id") Cursor cursor = mPhone.getContext().getContentResolver().query( Telephony.Carriers.CONTENT_URI, null, selection, null, orderBy); Telephony.Carriers.CONTENT_URI, null, selection, null, Telephony.Carriers._ID); if (cursor != null) { if (cursor.getCount() > 0) { Loading Loading
src/java/com/android/internal/telephony/dataconnection/DcTracker.java +3 −3 Original line number Diff line number Diff line Loading @@ -2269,15 +2269,15 @@ public final class DcTracker extends DcTrackerBase { IccRecords r = mIccRecords.get(); String operator = (r != null) ? r.getOperatorNumeric() : ""; if (operator != null) { String selection = "numeric = '" + operator + "'"; String orderBy = "_id"; String selection = Telephony.Carriers.NUMERIC + " = '" + operator + "'"; // query only enabled apn. // carrier_enabled : 1 means enabled apn, 0 disabled apn. // selection += " and carrier_enabled = 1"; if (DBG) log("createAllApnList: selection=" + selection); // ORDER BY Telephony.Carriers._ID ("_id") Cursor cursor = mPhone.getContext().getContentResolver().query( Telephony.Carriers.CONTENT_URI, null, selection, null, orderBy); Telephony.Carriers.CONTENT_URI, null, selection, null, Telephony.Carriers._ID); if (cursor != null) { if (cursor.getCount() > 0) { Loading