Bug 1322509 - [1.0] Initialize Gecko interface with the activity context instead of the application context. r=jchen
authorEugen Sawin <esawin@me73.com>
Thu, 08 Dec 2016 12:59:32 -1000
changeset 325602 8f46a9c3ac39ec546b4de2eaa169f281352fd19d
parent 325601 b5301d5a9251625788a510333fea870ac4a26b5b
child 325603 f21fb9477b1606467418bc63a2ebf6a5c6991476
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjchen
bugs1322509
milestone53.0a1
Bug 1322509 - [1.0] Initialize Gecko interface with the activity context instead of the application context. r=jchen
mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
--- a/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
+++ b/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
@@ -24,17 +24,17 @@ public class GeckoViewActivity extends A
     private static final String LOGTAG = "GeckoViewActivity";
 
     GeckoView mGeckoView;
 
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
 
-        setGeckoInterface(new BaseGeckoInterface(getApplicationContext()));
+        setGeckoInterface(new BaseGeckoInterface(this));
 
         setContentView(R.layout.geckoview_activity);
 
         mGeckoView = (GeckoView) findViewById(R.id.gecko_view);
         mGeckoView.setChromeDelegate(new MyGeckoViewChrome());
         mGeckoView.setContentDelegate(new MyGeckoViewContent());
     }