From ee13fc6c088a50620372a035d4ff67cff5dbaa07 Mon Sep 17 00:00:00 2001 From: kugel Date: Sun, 12 Sep 2010 17:46:54 +0000 Subject: [PATCH] Android: Use an explicit 8k buffer for unzipping libmisc.so to remove a warning in logcat. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28063 a1c6a512-1295-4272-9138-f99709370657 --- android/src/org/rockbox/RockboxService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/org/rockbox/RockboxService.java b/android/src/org/rockbox/RockboxService.java index 6dc69b3404..40f75783d5 100644 --- a/android/src/org/rockbox/RockboxService.java +++ b/android/src/org/rockbox/RockboxService.java @@ -91,7 +91,7 @@ public class RockboxService extends Service private void startservice() { fb = new RockboxFramebuffer(this); - final int BUFFER = 2048; + final int BUFFER = 8*1024; /* the following block unzips libmisc.so, which contains the files * we ship, such as themes. It's needed to put it into a .so file * because there's no other way to ship files and have access @@ -124,7 +124,7 @@ public class RockboxService extends Service } continue; } - is = new BufferedInputStream(zipfile.getInputStream(entry)); + is = new BufferedInputStream(zipfile.getInputStream(entry), BUFFER); int count; byte data[] = new byte[BUFFER]; folder = new File(new File(entry.getName()).getParent()); -- 2.11.4.GIT