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
This commit is contained in:
Thomas Martitz 2010-09-12 17:46:54 +00:00
parent a994401294
commit 6cf36810aa

View file

@ -91,7 +91,7 @@ public class RockboxService extends Service
private void startservice() private void startservice()
{ {
fb = new RockboxFramebuffer(this); fb = new RockboxFramebuffer(this);
final int BUFFER = 2048; final int BUFFER = 8*1024;
/* the following block unzips libmisc.so, which contains the files /* 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 * 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 * because there's no other way to ship files and have access
@ -124,7 +124,7 @@ public class RockboxService extends Service
} }
continue; continue;
} }
is = new BufferedInputStream(zipfile.getInputStream(entry)); is = new BufferedInputStream(zipfile.getInputStream(entry), BUFFER);
int count; int count;
byte data[] = new byte[BUFFER]; byte data[] = new byte[BUFFER];
folder = new File(new File(entry.getName()).getParent()); folder = new File(new File(entry.getName()).getParent());