Merge "Fix typo in WifiCallingSettingsForSub" am: 8959f0698a am: 9fd4f504e2

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2267745

Change-Id: I2de6c43683b2bb0b6473e3623415237f046408bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-10-25 07:43:25 +00:00
committed by Automerger Merge Worker

View File

@@ -85,8 +85,8 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment
protected static final String FRAGMENT_BUNDLE_SUBID = "subId"; protected static final String FRAGMENT_BUNDLE_SUBID = "subId";
public static final int LAUCH_APP_ACTIVATE = 0; public static final int LAUNCH_APP_ACTIVATE = 0;
public static final int LAUCH_APP_UPDATE = 1; public static final int LAUNCH_APP_UPDATE = 1;
//UI objects //UI objects
private SettingsMainSwitchPreference mSwitchBar; private SettingsMainSwitchPreference mSwitchBar;
@@ -179,7 +179,7 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment
preference -> { preference -> {
final Intent carrierAppIntent = getCarrierActivityIntent(); final Intent carrierAppIntent = getCarrierActivityIntent();
if (carrierAppIntent != null) { if (carrierAppIntent != null) {
carrierAppIntent.putExtra(EXTRA_LAUNCH_CARRIER_APP, LAUCH_APP_UPDATE); carrierAppIntent.putExtra(EXTRA_LAUNCH_CARRIER_APP, LAUNCH_APP_UPDATE);
startActivity(carrierAppIntent); startActivity(carrierAppIntent);
} }
return true; return true;
@@ -493,7 +493,7 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment
* Return null when no activity found. * Return null when no activity found.
*/ */
private Intent getCarrierActivityIntent() { private Intent getCarrierActivityIntent() {
// Retrive component name from carrier config // Retrieve component name from carrier config
final CarrierConfigManager configManager = final CarrierConfigManager configManager =
getActivity().getSystemService(CarrierConfigManager.class); getActivity().getSystemService(CarrierConfigManager.class);
if (configManager == null) return null; if (configManager == null) return null;
@@ -549,7 +549,7 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment
// Call address management activity before turning on WFC // Call address management activity before turning on WFC
final Intent carrierAppIntent = getCarrierActivityIntent(); final Intent carrierAppIntent = getCarrierActivityIntent();
if (carrierAppIntent != null) { if (carrierAppIntent != null) {
carrierAppIntent.putExtra(EXTRA_LAUNCH_CARRIER_APP, LAUCH_APP_ACTIVATE); carrierAppIntent.putExtra(EXTRA_LAUNCH_CARRIER_APP, LAUNCH_APP_ACTIVATE);
startActivityForResult(carrierAppIntent, startActivityForResult(carrierAppIntent,
REQUEST_CHECK_WFC_EMERGENCY_ADDRESS); REQUEST_CHECK_WFC_EMERGENCY_ADDRESS);
} else { } else {