Bug 686694 - Remove library extraction splash screen. r=mfinkle

This commit is contained in:
Mike Hommey
2011-09-16 11:15:43 +02:00
parent 5ccf4cdf1e
commit b11ba6e7e9
3 changed files with 2 additions and 25 deletions

View File

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