Increase Volley disk cache to 16MB

16MB ought to be enough for everyone, especially since it
does not count any full size images

Change-Id: I35121eb0d9949f7cbe254220f64ec879d163204c
GitHub: https://github.com/wikimedia/apps-android-commons/pull/27
This commit is contained in:
YuviPanda 2013-07-11 00:00:57 +00:00 committed by SuchABot
parent 19f9aed040
commit 2503fd11d2

View file

@ -112,7 +112,9 @@ public class CommonsApplication extends Application {
// Initialize EventLogging
EventLog.setApp(this);
volleyQueue = Volley.newRequestQueue(this);
DiskBasedCache cache = new DiskBasedCache(getCacheDir(), 16 * 1024 * 1024);
volleyQueue = new RequestQueue(cache, new BasicNetwork(new HurlStack()));
volleyQueue.start();
}
private com.android.volley.toolbox.ImageLoader imageLoader;