Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bug 671092 - Crash after failed attempt to extract libraries after up…

…date r=dougt
  • Loading branch information...
commit 3b1069abe4d155ad7c3906f4ef373ed0df44ab1b 1 parent f8af4c2
@bslassey bslassey authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 embedding/android/GeckoApp.java
View
13 embedding/android/GeckoApp.java
@@ -262,12 +262,21 @@ public void run() {
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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.