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-18 03:25:55 +00:00
committed by Calvin Pan
parent 88c7bd15a8
commit 7ea2a930be
+1 -1
View File
@@ -1535,7 +1535,7 @@ public class MmsUtils {
cursor = SqliteWrapper.query(
context,
resolver,
Telephony.Carriers.CONTENT_URI,
Telephony.Carriers.SIM_APN_URI,
TEST_CARRIERS_PROJECTION,
null/*selection*/,
null/*selectionArgs*/,