Loading core/java/android/view/accessibility/AccessibilityNodeInfo.java +8 −6 Original line number Original line Diff line number Diff line Loading @@ -2926,8 +2926,10 @@ public class AccessibilityNodeInfo implements Parcelable { mInputType = other.mInputType; mInputType = other.mInputType; mLiveRegion = other.mLiveRegion; mLiveRegion = other.mLiveRegion; mDrawingOrderInParent = other.mDrawingOrderInParent; mDrawingOrderInParent = other.mDrawingOrderInParent; if (other.mExtras != null && !other.mExtras.isEmpty()) { if (other.mExtras != null) { getExtras().putAll(other.mExtras); mExtras = new Bundle(other.mExtras); } else { mExtras = null; } } mRangeInfo = (other.mRangeInfo != null) mRangeInfo = (other.mRangeInfo != null) ? RangeInfo.obtain(other.mRangeInfo) : null; ? RangeInfo.obtain(other.mRangeInfo) : null; Loading Loading @@ -3006,7 +3008,9 @@ public class AccessibilityNodeInfo implements Parcelable { mDrawingOrderInParent = parcel.readInt(); mDrawingOrderInParent = parcel.readInt(); if (parcel.readInt() == 1) { if (parcel.readInt() == 1) { getExtras().putAll(parcel.readBundle()); mExtras = parcel.readBundle(); } else { mExtras = null; } } if (parcel.readInt() == 1) { if (parcel.readInt() == 1) { Loading Loading @@ -3073,9 +3077,7 @@ public class AccessibilityNodeInfo implements Parcelable { mTextSelectionEnd = UNDEFINED_SELECTION_INDEX; mTextSelectionEnd = UNDEFINED_SELECTION_INDEX; mInputType = InputType.TYPE_NULL; mInputType = InputType.TYPE_NULL; mLiveRegion = View.ACCESSIBILITY_LIVE_REGION_NONE; mLiveRegion = View.ACCESSIBILITY_LIVE_REGION_NONE; if (mExtras != null) { mExtras = null; mExtras.clear(); } if (mRangeInfo != null) { if (mRangeInfo != null) { mRangeInfo.recycle(); mRangeInfo.recycle(); mRangeInfo = null; mRangeInfo = null; Loading Loading
core/java/android/view/accessibility/AccessibilityNodeInfo.java +8 −6 Original line number Original line Diff line number Diff line Loading @@ -2926,8 +2926,10 @@ public class AccessibilityNodeInfo implements Parcelable { mInputType = other.mInputType; mInputType = other.mInputType; mLiveRegion = other.mLiveRegion; mLiveRegion = other.mLiveRegion; mDrawingOrderInParent = other.mDrawingOrderInParent; mDrawingOrderInParent = other.mDrawingOrderInParent; if (other.mExtras != null && !other.mExtras.isEmpty()) { if (other.mExtras != null) { getExtras().putAll(other.mExtras); mExtras = new Bundle(other.mExtras); } else { mExtras = null; } } mRangeInfo = (other.mRangeInfo != null) mRangeInfo = (other.mRangeInfo != null) ? RangeInfo.obtain(other.mRangeInfo) : null; ? RangeInfo.obtain(other.mRangeInfo) : null; Loading Loading @@ -3006,7 +3008,9 @@ public class AccessibilityNodeInfo implements Parcelable { mDrawingOrderInParent = parcel.readInt(); mDrawingOrderInParent = parcel.readInt(); if (parcel.readInt() == 1) { if (parcel.readInt() == 1) { getExtras().putAll(parcel.readBundle()); mExtras = parcel.readBundle(); } else { mExtras = null; } } if (parcel.readInt() == 1) { if (parcel.readInt() == 1) { Loading Loading @@ -3073,9 +3077,7 @@ public class AccessibilityNodeInfo implements Parcelable { mTextSelectionEnd = UNDEFINED_SELECTION_INDEX; mTextSelectionEnd = UNDEFINED_SELECTION_INDEX; mInputType = InputType.TYPE_NULL; mInputType = InputType.TYPE_NULL; mLiveRegion = View.ACCESSIBILITY_LIVE_REGION_NONE; mLiveRegion = View.ACCESSIBILITY_LIVE_REGION_NONE; if (mExtras != null) { mExtras = null; mExtras.clear(); } if (mRangeInfo != null) { if (mRangeInfo != null) { mRangeInfo.recycle(); mRangeInfo.recycle(); mRangeInfo = null; mRangeInfo = null; Loading