Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b91d21ba authored by tom hsu's avatar tom hsu Committed by Tom Hsu
Browse files

Add strings for NTN connection manual type

Flag: EXEMPT bug fix
Fix: b/397958254
Test: Manual test. see b/397958254#comment10
Change-Id: Ibcd3511edee9b3203c6c0cad68e0988b4b621b39
parent ceea22c0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -12583,12 +12583,20 @@
    <string name="category_name_how_it_works">How it works</string>
    <!-- Title for satellite connection guide [CHAR_LIMIT=NONE] -->
    <string name="title_satellite_connection_guide">When you don\u2019t have a mobile network</string>
    <!-- Title for satellite connection guide for NTN manual connection type. [CHAR_LIMIT=NONE] -->
    <string name="title_satellite_connection_guide_for_manual_type">Text a phone number</string>
    <!-- Summary for satellite connection guide [CHAR_LIMIT=NONE] -->
    <string name="summary_satellite_connection_guide">Your phone will auto-connect to a satellite. For the best connection, keep a clear view of the sky.</string>
    <!-- Summary for satellite connection guide for NTN manual connection type. [CHAR_LIMIT=NONE] -->
    <string name="summary_satellite_connection_guide_for_manual_type">If you don\u2019t have a mobile network, you\u2019ll see an option to use satellite messaging.</string>
    <!-- Title for satellite supported service [CHAR_LIMIT=NONE] -->
    <string name="title_supported_service">After your phone connects to a satellite</string>
    <!-- Title for satellite supported service for NTN manual connection type. [CHAR_LIMIT=NONE] -->
    <string name="title_supported_service_for_manual_type">Follow steps to connect to the satellite</string>
    <!-- Summary for satellite supported service [CHAR_LIMIT=NONE] -->
    <string name="summary_supported_service">You can text anyone, including emergency services. Your phone will reconnect to a mobile network when available.</string>
    <!-- Summary for satellite supported service for NTN manual connection type. [CHAR_LIMIT=NONE] -->
    <string name="summary_supported_service_for_manual_type">After your phone is connected, you can text anyone, including emergency services.</string>
    <!-- learn more text - more about satellite messaging [CHAR_LIMIT=NONE] -->
    <string name="satellite_setting_summary_more_information"><xliff:g id="subject" example="satellite messaging">%1$s</xliff:g> may take longer and is available only in some areas. Weather and certain structures may affect your satellite connection. Calling by satellite isn\u2019t available. Emergency calls may still connect.\n\nIt may take some time for account changes to show in Settings. Contact <xliff:g id="carrier_name" example="T-Mobile">%2$s</xliff:g> for details.</string>
    <!-- learn more text - more about satellite messaging without emergency messaging support. [CHAR_LIMIT=NONE] -->
+12 −0
Original line number Diff line number Diff line
@@ -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() {