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

Commit 24142819 authored by Steven Dao's avatar Steven Dao
Browse files

Populate RangeInfo correctly when acquiring from pool

Bug: 27136599
Change-Id: I836b2ae3bf9b2ed5fc4afeb744e2cf3a500cc4a4
parent 8af20ef6
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;
        }

        /**