зеркало из https://github.com/mozilla/pjs.git
bug 671092 - Crash after failed attempt to extract libraries after update r=dougt
This commit is contained in:
Родитель
14641f2f4b
Коммит
6189bd698f
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче