Merge "move ACTION_CARRIER_SETUP intent to public api"

This commit is contained in:
Chen Xu
2017-02-25 01:05:30 +00:00
committed by Gerrit Code Review

View File

@@ -125,7 +125,7 @@ public class WirelessSettings extends SettingsPreferenceFragment implements Inde
NetworkInfo ni = mCm.getActiveNetworkInfo();
if (mTm.hasIccCard() && (ni != null)) {
// Check for carrier apps that can handle provisioning first
Intent provisioningIntent = new Intent(TelephonyIntents.ACTION_CARRIER_SETUP);
Intent provisioningIntent = new Intent(Intent.ACTION_CARRIER_SETUP);
List<String> carrierPackages =
mTm.getCarrierPackageNamesForIntent(provisioningIntent);
if (carrierPackages != null && !carrierPackages.isEmpty()) {