Migrate to TelephonyProvider new URI when query the current sim APN

Since MCC, MNC and MVNO is deprecated in the TelephonyProvider and
query based on SIM_APN_URI will return all matching APNs from current
subscription carrier, so migrate to the new URI.

Bug: 115709816
Test: Build pass.
Change-Id: I260f2da2677564f37ef6a7711d45040a61215ddc
Merged-In: I260f2da2677564f37ef6a7711d45040a61215ddc
This commit is contained in:
calvinpan
2019-01-10 20:25:47 +08:00
committed by Calvin Pan
parent 88c7bd15a8
commit 7ea2a930be

View File

@@ -1535,7 +1535,7 @@ public class MmsUtils {
cursor = SqliteWrapper.query( cursor = SqliteWrapper.query(
context, context,
resolver, resolver,
Telephony.Carriers.CONTENT_URI, Telephony.Carriers.SIM_APN_URI,
TEST_CARRIERS_PROJECTION, TEST_CARRIERS_PROJECTION,
null/*selection*/, null/*selection*/,
null/*selectionArgs*/, null/*selectionArgs*/,