Yuvipanda has submitted this change and it was merged.

Change subject: Increase Volley disk cache to 16MB
......................................................................


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
---
M commons/src/main/java/org/wikimedia/commons/CommonsApplication.java
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved



diff --git 
a/commons/src/main/java/org/wikimedia/commons/CommonsApplication.java 
b/commons/src/main/java/org/wikimedia/commons/CommonsApplication.java
index 40b3203..0ab42fb 100644
--- a/commons/src/main/java/org/wikimedia/commons/CommonsApplication.java
+++ b/commons/src/main/java/org/wikimedia/commons/CommonsApplication.java
@@ -112,7 +112,9 @@
         // 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;

-- 
To view, visit https://gerrit.wikimedia.org/r/73128
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I35121eb0d9949f7cbe254220f64ec879d163204c
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/commons
Gerrit-Branch: master
Gerrit-Owner: SuchABot <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to