bug 631760 - don't hard code /data/data/<package name>, follow up r=me a=bustage

This commit is contained in:
Brad Lassey 2011-02-08 03:39:15 -05:00
parent 535a8cbf62
commit 4f457def0e

View File

@ -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;