mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
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:
parent
19f9aed040
commit
2503fd11d2
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue