Commit 08c0f250 authored by John Reck's avatar John Reck
Browse files

Fix race condition

Change-Id: I6cf9207d067d4c0c3c4271d6ce6f44b213d7296b
parent d26f1ad5
......@@ -46,11 +46,9 @@ public class GalleryBitmapPool {
mCapacityBytes = capacityBytes;
}
private static GalleryBitmapPool sInstance;
private static GalleryBitmapPool sInstance = new GalleryBitmapPool(CAPACITY_BYTES);
public static GalleryBitmapPool getInstance() {
if (sInstance == null) {
sInstance = new GalleryBitmapPool(CAPACITY_BYTES);
}
return sInstance;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment