Skip to content

Commit 2503fd1

Browse files
yuvipandasuchabot
authored andcommitted
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
1 parent 19f9aed commit 2503fd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commons/src/main/java/org/wikimedia/commons/CommonsApplication.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ public void onCreate() {
112112
// Initialize EventLogging
113113
EventLog.setApp(this);
114114

115-
volleyQueue = Volley.newRequestQueue(this);
115+
DiskBasedCache cache = new DiskBasedCache(getCacheDir(), 16 * 1024 * 1024);
116+
volleyQueue = new RequestQueue(cache, new BasicNetwork(new HurlStack()));
117+
volleyQueue.start();
116118
}
117119

118120
private com.android.volley.toolbox.ImageLoader imageLoader;

0 commit comments

Comments
 (0)