mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fix crash in image prefetch.
This commit is contained in:
parent
f1c2a1db7e
commit
72cdae761c
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import com.newsblur.util.AppConstants;
|
|||
import com.newsblur.util.ImageCache;
|
||||
import com.newsblur.util.PrefsUtils;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
|
@ -17,7 +18,7 @@ public class ImagePrefetchService extends SubService {
|
|||
|
||||
/** URLs of images contained in recently fetched stories that are candidates for prefetch. */
|
||||
static Set<String> ImageQueue;
|
||||
static { ImageQueue = new HashSet<String>(); }
|
||||
static { ImageQueue = Collections.synchronizedSet(new HashSet<String>()); }
|
||||
|
||||
public ImagePrefetchService(NBSyncService parent) {
|
||||
super(parent);
|
||||
|
|
Loading…
Add table
Reference in a new issue