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:
parent
a994401294
commit
6cf36810aa
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue