Save a few bytes on the zygote heap.

The default LongSparseArray constructor builds two 10-element
arrays that we don't need.

Change-Id: I83ef4fbd8825109087cbe8990ad66d79eab33e5c
This commit is contained in:
Jesse Wilson
2011-02-17 20:04:08 -08:00
parent 260a13a95e
commit 179a3bda60

View File

@@ -115,7 +115,7 @@ public class Resources {
private CompatibilityInfo mCompatibilityInfo;
private Display mDefaultDisplay;
private static final LongSparseArray<Object> EMPTY_ARRAY = new LongSparseArray<Object>() {
private static final LongSparseArray<Object> EMPTY_ARRAY = new LongSparseArray<Object>(0) {
@Override
public void put(long k, Object o) {
throw new UnsupportedOperationException();