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

Commit f917e2f7 authored by Steven Dao's avatar Steven Dao Committed by android-build-merger
Browse files

Merge "Populate RangeInfo correctly when acquiring from pool" into nyc-dev

am: c1699a9f

* commit 'c1699a9f':
  Populate RangeInfo correctly when acquiring from pool

Change-Id: I0227f6b9a842fa1e63827cda51e0cb5a435e278e
parents c9c4f977 c1699a9f
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3842,7 +3842,15 @@ public class AccessibilityNodeInfo implements Parcelable {
         */
        public static RangeInfo obtain(int type, float min, float max, float current) {
            RangeInfo info = sPool.acquire();
            return (info != null) ? info : new RangeInfo(type, min, max, current);
            if (info == null) {
                return new RangeInfo(type, min, max, current);
            }

            info.mType = type;
            info.mMin = min;
            info.mMax = max;
            info.mCurrent = current;
            return info;
        }

        /**