bug 671092 - Crash after failed attempt to extract libraries after update r=dougt

This commit is contained in:
Brad Lassey 2011-07-18 14:25:20 -04:00
parent 58ba740f31
commit 2ca7795d5e

View File

@ -262,12 +262,21 @@ abstract public class GeckoApp
if (GeckoAppShell.getFreeSpace() > GeckoAppShell.kFreeSpaceThreshold &&
(!libxulFile.exists() ||
new File(getApplication().getPackageResourcePath()).lastModified()
>= libxulFile.lastModified()))
>= libxulFile.lastModified())) {
surfaceView.mSplashStatusMsg =
getResources().getString(R.string.splash_screen_installing_libs);
else
File[] libs = cacheFile.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".so");
}
});
for (int i = 0; i < libs.length; i++) {
libs[i].delete();
}
} else {
surfaceView.mSplashStatusMsg =
getResources().getString(R.string.splash_screen_loading);
}
mLibLoadThread.start();
}