Merge "move ACTION_CARRIER_SETUP intent to public api"
This commit is contained in:
@@ -125,7 +125,7 @@ public class WirelessSettings extends SettingsPreferenceFragment implements Inde
|
|||||||
NetworkInfo ni = mCm.getActiveNetworkInfo();
|
NetworkInfo ni = mCm.getActiveNetworkInfo();
|
||||||
if (mTm.hasIccCard() && (ni != null)) {
|
if (mTm.hasIccCard() && (ni != null)) {
|
||||||
// Check for carrier apps that can handle provisioning first
|
// 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 =
|
List<String> carrierPackages =
|
||||||
mTm.getCarrierPackageNamesForIntent(provisioningIntent);
|
mTm.getCarrierPackageNamesForIntent(provisioningIntent);
|
||||||
if (carrierPackages != null && !carrierPackages.isEmpty()) {
|
if (carrierPackages != null && !carrierPackages.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user