diff --git a/samples/flickr/src/main/java/com/bumptech/glide/samples/flickr/api/Api.java b/samples/flickr/src/main/java/com/bumptech/glide/samples/flickr/api/Api.java index 346b1b0b10..4db52071cc 100644 --- a/samples/flickr/src/main/java/com/bumptech/glide/samples/flickr/api/Api.java +++ b/samples/flickr/src/main/java/com/bumptech/glide/samples/flickr/api/Api.java @@ -69,7 +69,7 @@ private static List getLargerSizeKeys(int width, int height) { boolean isFirstLargest = true; List result = new ArrayList<>(); - int size = result.size(); + int size = SORTED_SIZE_KEYS.size(); for (int i = 0; i < size; i++) { int edge = SORTED_SIZE_KEYS.get(i); if (largestEdge <= edge) {