[Satellite] Move entitlment check to auto type only.

Flag: EXEMPT bug fix
Bug: b/401648126
Test: atest pass
Change-Id: Ide6f8520b5e1e60f700586ef00970a4f55f5babe
This commit is contained in:
tom hsu
2025-03-17 03:52:02 +00:00
parent 998eea6957
commit 7ca28dd3d6
2 changed files with 9 additions and 9 deletions

View File

@@ -186,17 +186,17 @@ public class SatelliteSettingPreferenceController extends
return;
}
if (!mCarrierConfigs.getBoolean(KEY_SATELLITE_ENTITLEMENT_SUPPORTED_BOOL)) {
preference.setSummary(R.string.satellite_setting_summary_without_entitlement);
return;
}
if (isCarrierRoamingNtnConnectedTypeManual()) {
preference.setSummary(
mCarrierRoamingNtnModeCallback.isSatelliteSmsAvailable()
? R.string.satellite_setting_enabled_summary
: R.string.satellite_setting_disabled_summary);
} else {
if (!mCarrierConfigs.getBoolean(KEY_SATELLITE_ENTITLEMENT_SUPPORTED_BOOL)) {
preference.setSummary(R.string.satellite_setting_summary_without_entitlement);
return;
}
try {
Set<Integer> restrictionReason =
mSatelliteManager.getAttachRestrictionReasonsForCarrier(mSubId);