mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 684152 - Don't even bother trying to unpackComponents if the APK hasn't changed [r=dougt]
This commit is contained in:
parent
50b9e50de2
commit
a999b3fe47
@ -141,7 +141,6 @@ abstract public class GeckoApp
|
||||
final Intent i = intent;
|
||||
new Thread() {
|
||||
public void run() {
|
||||
long startup_time = System.currentTimeMillis();
|
||||
try {
|
||||
if (mLibLoadThread != null)
|
||||
mLibLoadThread.join();
|
||||
@ -460,12 +459,15 @@ abstract public class GeckoApp
|
||||
protected void unpackComponents()
|
||||
throws IOException, FileNotFoundException
|
||||
{
|
||||
ZipFile zip;
|
||||
InputStream listStream;
|
||||
|
||||
File applicationPackage = new File(getApplication().getPackageResourcePath());
|
||||
File componentsDir = new File(sGREDir, "components");
|
||||
if (componentsDir.lastModified() == applicationPackage.lastModified())
|
||||
return;
|
||||
|
||||
componentsDir.mkdir();
|
||||
zip = new ZipFile(getApplication().getPackageResourcePath());
|
||||
componentsDir.setLastModified(applicationPackage.lastModified());
|
||||
|
||||
ZipFile zip = new ZipFile(applicationPackage);
|
||||
|
||||
byte[] buf = new byte[8192];
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user