Construct BufferedInputStream with explicit 8k buffer to avoid android logcat warning.
authorkenstir <kenstir@gmail.com>
Fri, 25 Oct 2013 21:42:44 +0000 (17:42 -0400)
committerkenstir <kenstir@gmail.com>
Fri, 25 Oct 2013 21:42:44 +0000 (17:42 -0400)
Open-ILS/src/Android/src/org/evergreen/android/globals/Utils.java

index e7d0358..214059a 100644 (file)
@@ -185,7 +185,7 @@ public class Utils {
             InputStream is = conn.getInputStream(); // get the image from the
                                                     // URLConnection conn using
                                                     // InputStream is
-            BufferedInputStream bis = new BufferedInputStream(is); // create a
+            BufferedInputStream bis = new BufferedInputStream(is, 8*1024); // create a
                                                                    // BufferedInputStream
                                                                    // called bis
                                                                    // from is