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

Commit b3eb3084 authored by Zoey Chen's avatar Zoey Chen
Browse files

[PhysicalChannelConfig] RIL will report UNKNOWN range to PhysicalChannelConfig...

[PhysicalChannelConfig] RIL will report UNKNOWN range to PhysicalChannelConfig and it can not throw out Exception.

Bug: 178632267
Test: manual
Change-Id: I02caa256b3725f09859d6af38649a62f52862158
parent c8d8b7cd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -554,7 +554,8 @@ public final class PhysicalChannelConfig implements Parcelable {
        }

        public @NonNull Builder setFrequencyRange(int frequencyRange) {
            if (!ServiceState.isFrequencyRangeValid(frequencyRange)) {
            if (!ServiceState.isFrequencyRangeValid(frequencyRange)
                    && frequencyRange != ServiceState.FREQUENCY_RANGE_UNKNOWN) {
                throw new IllegalArgumentException("Frequency range: " + frequencyRange +
                        " is invalid.");
            }