Fix popping up the the VoLTE screen when it's disabled by the carrier.

- If only has the default carrier config just return, to
  avoid popping up the the VoLTE screen when it's disabled
  by the carrier.

Bug: 332647055
Test: manual
Flag: NONE bugfix
Change-Id: I71bc02f5044535d48726a531e36d57df73bc0f5f
This commit is contained in:
pengfeix
2024-06-18 07:02:18 +05:30
committed by Pengfei Xiao
parent d1b8b3a7e1
commit 4fa2836aa5

View File

@@ -107,8 +107,8 @@ public class Enhanced4gBasePreferenceController extends TelephonyTogglePreferenc
}
final PersistableBundle carrierConfig = getCarrierConfigForSubId(subId);
if ((carrierConfig == null)
|| carrierConfig.getBoolean(CarrierConfigManager.KEY_HIDE_ENHANCED_4G_LTE_BOOL)) {
if (!CarrierConfigManager.isConfigForIdentifiedCarrier(carrierConfig) ||
carrierConfig.getBoolean(CarrierConfigManager.KEY_HIDE_ENHANCED_4G_LTE_BOOL)) {
return CONDITIONALLY_UNAVAILABLE;
}