Merge "Use index in SparseArray access properly"

This commit is contained in:
Dianne Hackborn
2013-11-15 00:33:20 +00:00
committed by Gerrit Code Review

View File

@@ -353,7 +353,7 @@ public final class Bundle implements Parcelable, Cloneable {
SparseArray<? extends Parcelable> array =
(SparseArray<? extends Parcelable>) obj;
for (int n = array.size() - 1; n >= 0; n--) {
if ((array.get(n).describeContents()
if ((array.valueAt(n).describeContents()
& Parcelable.CONTENTS_FILE_DESCRIPTOR) != 0) {
fdFound = true;
break;