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

Commit 4b8f386a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Set max frequency as Max_Value of integer if it's negative." am:...

Merge "Set max frequency as Max_Value of integer if it's negative." am: 4a17bccf am: 30f0456d am: 35028e9f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1542427

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iea2c5ad48a1da20d00ccd4ccc393d8683bdc5836
parents 85dee397 35028e9f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@ public class FrontendInfo {
            FrontendCapabilities frontendCap) {
        mId = id;
        mType = type;
        // if max Frequency is negative, we set it as max value of the Integer.
        if (maxFrequency < 0) {
            maxFrequency = Integer.MAX_VALUE;
        }
        mFrequencyRange = new Range<>(minFrequency, maxFrequency);
        mSymbolRateRange = new Range<>(minSymbolRate, maxSymbolRate);
        mAcquireRange = acquireRange;