mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
bug 671092 - Crash after failed attempt to extract libraries after update r=dougt
This commit is contained in:
parent
58ba740f31
commit
2ca7795d5e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user