mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 631760 - don't hard code /data/data/<package name>, follow up r=me a=bustage
This commit is contained in:
parent
535a8cbf62
commit
4f457def0e
@ -171,15 +171,8 @@ abstract public class GeckoApp
|
||||
Log.i("GeckoApp", "create");
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
if (sGREDir == null) {
|
||||
// If application.ini already exists in the old dir, use its parent.
|
||||
File app_ini =
|
||||
new File("/data/data/" + getPackageName() + "/application.ini");
|
||||
if (app_ini.exists())
|
||||
sGREDir = app_ini.getParentFile();
|
||||
else
|
||||
sGREDir = this.getDir("gre", 0);
|
||||
}
|
||||
if (sGREDir == null)
|
||||
sGREDir = new File(this.getApplicationInfo().dataDir);
|
||||
|
||||
mAppContext = this;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user