diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java index 2cba546451a..52e1c95b25d 100644 --- a/mobile/android/base/GeckoApp.java +++ b/mobile/android/base/GeckoApp.java @@ -13,7 +13,6 @@ import org.mozilla.gecko.gfx.LayerView; import org.mozilla.gecko.gfx.PanZoomController; import org.mozilla.gecko.gfx.PluginLayer; import org.mozilla.gecko.gfx.PointUtils; -import org.mozilla.gecko.mozglue.GeckoLoader; import org.mozilla.gecko.updater.UpdateService; import org.mozilla.gecko.updater.UpdateServiceHelper; import org.mozilla.gecko.util.GeckoBackgroundThread; @@ -1361,7 +1360,6 @@ abstract public class GeckoApp return; } - GeckoLoader.loadMozGlue(this); if (sGeckoThread != null) { // this happens when the GeckoApp activity is destroyed by android // without killing the entire application (see bug 769269) diff --git a/mobile/android/base/GeckoApplication.java b/mobile/android/base/GeckoApplication.java index d47df61821e..0f8c030a731 100644 --- a/mobile/android/base/GeckoApplication.java +++ b/mobile/android/base/GeckoApplication.java @@ -5,6 +5,7 @@ package org.mozilla.gecko; import android.app.Application; +import org.mozilla.gecko.mozglue.GeckoLoader; public class GeckoApplication extends Application { @@ -61,6 +62,12 @@ public class GeckoApplication extends Application { mInBackground = false; } + @Override + public void onCreate() { + GeckoLoader.loadMozGlue(getApplicationContext()); + super.onCreate(); + } + public boolean isApplicationInBackground() { return mInBackground; }