mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 632908 - Java errors and crash on startup with Android 2.1 r=dougt a=blocking-fennec
This commit is contained in:
parent
a08aa31b93
commit
071869f2e3
@ -194,7 +194,8 @@ class GeckoAppShell
|
||||
System.loadLibrary("mozutils");
|
||||
GeckoApp geckoApp = GeckoApp.mAppContext;
|
||||
String homeDir;
|
||||
if (geckoApp.getApplication().getPackageResourcePath().startsWith("/data")) {
|
||||
if (Build.VERSION.SDK_INT < 8 ||
|
||||
geckoApp.getApplication().getPackageResourcePath().startsWith("/data")) {
|
||||
File home = geckoApp.getFilesDir();
|
||||
homeDir = home.getPath();
|
||||
// handle the application being moved to phone from sdcard
|
||||
@ -203,11 +204,12 @@ class GeckoAppShell
|
||||
GeckoApp.mAppContext.getPackageName() + "/mozilla");
|
||||
if (oldHome.exists())
|
||||
moveDir(oldHome, profileDir);
|
||||
|
||||
File extHome = geckoApp.getExternalFilesDir(null);
|
||||
File extProf = new File (extHome, "mozilla");
|
||||
if (extHome.exists())
|
||||
moveDir(extProf, profileDir);
|
||||
if (Build.VERSION.SDK_INT >= 8) {
|
||||
File extHome = geckoApp.getExternalFilesDir(null);
|
||||
File extProf = new File (extHome, "mozilla");
|
||||
if (extHome.exists())
|
||||
moveDir(extProf, profileDir);
|
||||
}
|
||||
} else {
|
||||
File home = geckoApp.getExternalFilesDir(null);
|
||||
homeDir = home.getPath();
|
||||
|
Loading…
Reference in New Issue
Block a user