summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-07-18 23:53:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-07-18 23:53:33 +0000
commit059bf080fb29abc7b3fe3e848e68cd105c4f7528 (patch)
treea2c44281b07cc94388d946c609344399963a07a9
parentbe94819065f241208913c6a9d66e09c579febac6 (diff)
parent127c5ef5d7bf2dc44fc53deeda9058a17e27addb (diff)
downloadframeworks_base-059bf080fb29abc7b3fe3e848e68cd105c4f7528.zip
frameworks_base-059bf080fb29abc7b3fe3e848e68cd105c4f7528.tar.gz
frameworks_base-059bf080fb29abc7b3fe3e848e68cd105c4f7528.tar.bz2
Merge "Fix crash."
-rw-r--r--core/java/android/os/Bundle.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/os/Bundle.java b/core/java/android/os/Bundle.java
index 2b0ae3a..48eb8cc 100644
--- a/core/java/android/os/Bundle.java
+++ b/core/java/android/os/Bundle.java
@@ -216,6 +216,8 @@ public final class Bundle implements Parcelable, Cloneable {
}
if (mMap == null) {
mMap = new ArrayMap<String, Object>(N);
+ } else {
+ mMap.ensureCapacity(N);
}
mParcelledData.readArrayMapInternal(mMap, N, mClassLoader);
mParcelledData.recycle();