mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 842681 - Call GeckoLoader.loadMozGlue from GeckoApplication.onCreate instead of GeckoApp.onCreate. r=kats
This commit is contained in:
parent
c55320bda8
commit
0d335ced84
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user