Bug 1508279 - Use the correct intent for GeckoServicesCreatorService. r=sdaswani
authorVlad Baicu <vlad.baicu@softvision.ro>
Fri, 18 Jan 2019 18:14:44 +0000
changeset 454501 e29be447ca751eb0fd8b854631c3eee176dba32e
parent 454500 259e581af979d775e91f6ce2b15bb6e29fdc996d
child 454502 64aa8ab3332b0f84707424779368b5ace23ec761
push id35399
push usercsabou@mozilla.com
push dateSat, 19 Jan 2019 09:28:26 +0000
treeherdermozilla-central@64d167665c29 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssdaswani
bugs1508279
milestone66.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 1508279 - Use the correct intent for GeckoServicesCreatorService. r=sdaswani Differential Revision: https://phabricator.services.mozilla.com/D16998
mobile/android/base/java/org/mozilla/gecko/notifications/NotificationReceiver.java
--- a/mobile/android/base/java/org/mozilla/gecko/notifications/NotificationReceiver.java
+++ b/mobile/android/base/java/org/mozilla/gecko/notifications/NotificationReceiver.java
@@ -84,17 +84,17 @@ public class NotificationReceiver extend
                                             final Uri data, final Intent intent) {
         final String name = data.getQueryParameter("name");
         final String cookie = data.getQueryParameter("cookie");
         final Intent persistentIntent = (Intent)
                 intent.getParcelableExtra(NotificationClient.PERSISTENT_INTENT_EXTRA);
 
         if (persistentIntent != null) {
             // Go through GeckoService for persistent notifications.
-            GeckoServicesCreatorService.enqueueWork(context, intent);
+            GeckoServicesCreatorService.enqueueWork(context, persistentIntent);
         }
 
         if (NotificationClient.CLICK_ACTION.equals(action)) {
             GeckoAppShell.onNotificationClick(name, cookie);
 
             final Intent appIntent = new Intent(GeckoApp.ACTION_ALERT_CALLBACK);
             appIntent.setComponent(new ComponentName(
                     data.getAuthority(), data.getPath().substring(1))); // exclude leading slash.