Bug 933775 - Fix download timestamp by changing 'when' parameter to contain time since epoch. r=wesj
authorGian-Carlo Pascutto <gpascutto@mozilla.com>
Wed, 04 Dec 2013 13:31:00 +0100
changeset 174453 a5f547833e7d288ad18cd494fbcec6ac9c4ea417
parent 174452 8f4eaade578ec45187d4cc4680b734cf6bfbed31
child 174454 94759f93f65e9980931d8c8c25a2a9bbf0b2a3fa
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj
bugs933775
milestone28.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 933775 - Fix download timestamp by changing 'when' parameter to contain time since epoch. r=wesj
mobile/android/base/NotificationHelper.java
--- a/mobile/android/base/NotificationHelper.java
+++ b/mobile/android/base/NotificationHelper.java
@@ -232,17 +232,17 @@ public final class NotificationHelper im
                 Log.i(LOGTAG, "Error parsing", ex);
             }
         }
 
         boolean ongoing = message.optBoolean(ONGOING_ATTR);
         builder.setOngoing(ongoing);
 
         if (message.has(WHEN_ATTR)) {
-            int when = message.optInt(WHEN_ATTR);
+            long when = message.optLong(WHEN_ATTR);
             builder.setWhen(when);
         }
 
         if (message.has(PRIORITY_ATTR)) {
             int priority = message.optInt(PRIORITY_ATTR);
             builder.setPriority(priority);
         }