Fix Text of VoLTE setting cannot be updated when SIM state is changed
Text of setting menu for VoLTE should be changed from "VoLTE" to "4G Calling" if "show_4g_for_lte_data_icon_bool" is true. However, it is not changed in the following steps. 1. Turn Use SIM off on Mobile Network Setting and close Mobile Network Setting screen. 2. Open Mobile Network Setting screen again and turn Use SIM on. Root cause is that the carrier config value is loaded only when SIM's subid is changed. So, remove checking subId so that the carrier config value is updated. Additional fix: Removed checking #isModeMatched in # onStart because "4G calling" Setting was grayed out. It needs to listen to call state change regardless of display status of the preference because Preference may be switched even after the screen is displayed. Test: manual Test: make RunSettingsRoboTests \ ROBOTEST_FILTER=Enhanced4gBasePreferenceControllerTest Bug: 196030198 Change-Id: Ibf4d17aa493f69a3f00e35ae0e9d1419bd9e0d77
Loading
Please register or sign in to comment