Change TelephonyManager method name to accurately reflect functionality.

Bug: 17163860

Change-Id: I319b3dc19c171108963113aa821e50842654a61e
This commit is contained in:
Diego Pontoriero
2014-08-28 13:52:24 -07:00
parent d037d04dc4
commit be7adcc989

View File

@@ -130,7 +130,7 @@ public class WirelessSettings extends SettingsPreferenceFragment
// Check for carrier apps that can handle provisioning first
Intent provisioningIntent = new Intent(TelephonyIntents.ACTION_CARRIER_SETUP);
List<String> carrierPackages =
mTm.getCarrierPackageNamesForBroadcastIntent(provisioningIntent);
mTm.getCarrierPackageNamesForIntent(provisioningIntent);
if (carrierPackages != null && !carrierPackages.isEmpty()) {
if (carrierPackages.size() != 1) {
Log.w(TAG, "Multiple matching carrier apps found, launching the first.");