diff options
author | Ralph Bergmann <ralph@the4thfloor.eu> | 2013-12-16 19:23:26 +0100 |
---|---|---|
committer | Ralph Bergmann <ralph@the4thfloor.eu> | 2014-12-15 12:54:08 +0100 |
commit | ced8a98b9ffa3612656b7979f8933ae9cf19d657 (patch) | |
tree | ba375755aaaa02798bf436a9ac2b22f314404ca2 /src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java | |
parent | 1a39583f0ee06329f7918ed9a4c7d0e7cd342917 (diff) | |
download | volley-ced8a98b9ffa3612656b7979f8933ae9cf19d657.tar.gz |
Use the view size and scale type to restrict NIV requests.
Change-Id: I77e705c09937f78af746cd73b6e6d94fd4ee2a03
Diffstat (limited to 'src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java')
-rw-r--r-- | src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java b/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java index 48c81b6..bc2cc29 100644 --- a/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java +++ b/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java @@ -1,6 +1,7 @@ package com.android.volley.toolbox; import android.view.ViewGroup.LayoutParams; +import android.widget.ImageView.ScaleType; import org.junit.Before; import org.junit.Test; @@ -43,7 +44,7 @@ public class NetworkImageViewTest { public int lastMaxHeight; public ImageContainer get(String requestUrl, ImageListener imageListener, int maxWidth, - int maxHeight) { + int maxHeight, ScaleType scaleType) { lastRequestUrl = requestUrl; lastMaxWidth = maxWidth; lastMaxHeight = maxHeight; |