Merge "Reflect satellite api refactoring to Settings" into main
This commit is contained in:
@@ -183,7 +183,7 @@ public class SatelliteSetting extends RestrictedDashboardFragment {
|
|||||||
private boolean isSatelliteEligible() {
|
private boolean isSatelliteEligible() {
|
||||||
try {
|
try {
|
||||||
Set<Integer> restrictionReason =
|
Set<Integer> restrictionReason =
|
||||||
mSatelliteManager.getSatelliteAttachRestrictionReasonsForCarrier(mSubId);
|
mSatelliteManager.getAttachRestrictionReasonsForCarrier(mSubId);
|
||||||
return !restrictionReason.contains(
|
return !restrictionReason.contains(
|
||||||
SatelliteManager.SATELLITE_COMMUNICATION_RESTRICTION_REASON_ENTITLEMENT);
|
SatelliteManager.SATELLITE_COMMUNICATION_RESTRICTION_REASON_ENTITLEMENT);
|
||||||
} catch (SecurityException | IllegalStateException | IllegalArgumentException ex) {
|
} catch (SecurityException | IllegalStateException | IllegalArgumentException ex) {
|
||||||
|
@@ -113,7 +113,7 @@ public class SatelliteSettingPreferenceController extends
|
|||||||
private void updateSummary(Preference preference) {
|
private void updateSummary(Preference preference) {
|
||||||
try {
|
try {
|
||||||
Set<Integer> restrictionReason =
|
Set<Integer> restrictionReason =
|
||||||
mSatelliteManager.getSatelliteAttachRestrictionReasonsForCarrier(mSubId);
|
mSatelliteManager.getAttachRestrictionReasonsForCarrier(mSubId);
|
||||||
boolean isSatelliteEligible = !restrictionReason.contains(
|
boolean isSatelliteEligible = !restrictionReason.contains(
|
||||||
SatelliteManager.SATELLITE_COMMUNICATION_RESTRICTION_REASON_ENTITLEMENT);
|
SatelliteManager.SATELLITE_COMMUNICATION_RESTRICTION_REASON_ENTITLEMENT);
|
||||||
if (mIsSatelliteEligible == null || mIsSatelliteEligible != isSatelliteEligible) {
|
if (mIsSatelliteEligible == null || mIsSatelliteEligible != isSatelliteEligible) {
|
||||||
|
Reference in New Issue
Block a user