Add strings for NTN connection manual type

Flag: EXEMPT bug fix
Fix: b/397958254
Test: Manual test. see b/397958254#comment10
Change-Id: Ibcd3511edee9b3203c6c0cad68e0988b4b621b39
This commit is contained in:
tom hsu
2025-02-25 11:42:46 +00:00
committed by Tom Hsu
parent ceea22c012
commit b91d21ba76
2 changed files with 20 additions and 0 deletions

View File

@@ -70,6 +70,9 @@ public class SatelliteSetting extends RestrictedDashboardFragment {
private static final String PREF_KEY_YOUR_SATELLITE_DATA_PLAN = "key_your_satellite_data_plan";
private static final String PREF_KEY_CATEGORY_ABOUT_SATELLITE = "key_category_about_satellite";
private static final String KEY_FOOTER_PREFERENCE = "satellite_setting_extra_info_footer_pref";
private static final String KEY_SATELLITE_CONNECTION_GUIDE = "key_satellite_connection_guide";
private static final String KEY_SUPPORTED_SERVICE = "key_supported_service";
static final String SUB_ID = "sub_id";
static final String EXTRA_IS_SERVICE_DATA_TYPE = "is_service_data_type";
@@ -227,6 +230,15 @@ public class SatelliteSetting extends RestrictedDashboardFragment {
category.setEnabled(false);
category.setShouldDisableView(true);
}
if (!isCarrierRoamingNtnConnectedTypeManual()) {
return;
}
Preference connectionGuide = findPreference(KEY_SATELLITE_CONNECTION_GUIDE);
connectionGuide.setTitle(R.string.title_satellite_connection_guide_for_manual_type);
connectionGuide.setSummary(R.string.summary_satellite_connection_guide_for_manual_type);
Preference supportedService = findPreference(KEY_SUPPORTED_SERVICE);
supportedService.setTitle(R.string.title_supported_service_for_manual_type);
supportedService.setSummary(R.string.summary_supported_service_for_manual_type);
}
private void updateFooterContent() {