Bug 1360658 - Forward BundleEvents from WebAppActivity to GeckoApp. r=daleharvey
authorJan Henning <jh+bugzilla@buttercookie.de>
Fri, 28 Apr 2017 20:48:08 +0200
changeset 355981 632e25ba6de9e5d3d0f6d838c59f44fec52562a1
parent 355980 7f06e5ac97e6bde50a37e4b716facb5e46c15bd6
child 355982 dfaab9ab88f919932769b0d7a90e716640f6f75e
push id31754
push userkwierso@gmail.com
push dateWed, 03 May 2017 00:28:51 +0000
treeherdermozilla-central@5eaf2d70eded [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaleharvey
bugs1360658
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1360658 - Forward BundleEvents from WebAppActivity to GeckoApp. r=daleharvey Otherwise random stuff handled by GeckoApp (e.g. snack bars) won't work inside a WebAppActivity. MozReview-Commit-ID: ElGOPQcqFJS
mobile/android/base/java/org/mozilla/gecko/webapps/WebAppActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/webapps/WebAppActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/webapps/WebAppActivity.java
@@ -108,16 +108,18 @@ public class WebAppActivity extends Sing
     @Override
     public int getLayout() {
         return R.layout.customtabs_activity;
     }
 
     @Override
     public void handleMessage(final String event, final GeckoBundle message,
                               final EventCallback callback) {
+        super.handleMessage(event, message, callback);
+
         if (message == null ||
                 !message.containsKey("tabId") || message.getInt("tabId") != mLastSelectedTabId) {
             return;
         }
 
         switch (event) {
             case "Website:AppEntered":
                 getSupportActionBar().hide();