We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c643255 commit 42d3f07Copy full SHA for 42d3f07
library/src/main/java/com/bumptech/glide/provider/ResourceDecoderRegistry.java
@@ -20,7 +20,11 @@ public class ResourceDecoderRegistry {
20
public synchronized void setBucketPriorityList(@NonNull List<String> buckets) {
21
List<String> previousBuckets = new ArrayList<>(bucketPriorityList);
22
bucketPriorityList.clear();
23
- bucketPriorityList.addAll(buckets);
+ // new ArrayList(List) and ArrayList#addAll(List) are both broken on some verisons of Android,
24
+ // see #3296
25
+ for (String bucket : buckets) {
26
+ bucketPriorityList.add(bucket);
27
+ }
28
for (String previousBucket : previousBuckets) {
29
if (!buckets.contains(previousBucket)) {
30
// Keep any buckets from the previous list that aren't included here, but but them at the
0 commit comments