Bug 1282222 - Clean up 'NotificationClient.java' ;r?jchen draft
authorSUN Haitao <sunhaitao@devtaste.com>
Sun, 26 Jun 2016 11:41:11 +0800
changeset 381370 e847d74def4b758c90f36f47659b4f40faf00150
parent 381369 c2da34d96746288b5fee27bf6542a12c9f410988
child 381371 205eab4a3e79b7439182b854e2a7ef1a38eee39c
push id21455
push userbmo:sunhaitao@devtaste.com
push dateSun, 26 Jun 2016 12:04:13 +0000
reviewersjchen
bugs1282222
milestone50.0a1
Bug 1282222 - Clean up 'NotificationClient.java' ;r?jchen MozReview-Commit-ID: 141QdoXyWaf
mobile/android/base/java/org/mozilla/gecko/NotificationClient.java
--- a/mobile/android/base/java/org/mozilla/gecko/NotificationClient.java
+++ b/mobile/android/base/java/org/mozilla/gecko/NotificationClient.java
@@ -62,17 +62,17 @@ public abstract class NotificationClient
             synchronized (this) {
                 progress = mProgress;
                 progressMax = mProgressMax;
                 alertText = mAlertText;
             }
 
             mHandler.update(mNotificationID, progress, progressMax, alertText);
         }
-    };
+    }
 
     /**
      * Adds a notification.
      *
      * @see NotificationHandler#add(int, String, String, String, PendingIntent, PendingIntent)
      */
     public synchronized void add(final int notificationID, final String aImageUrl, final String aHost,
             final String aAlertTitle, final String aAlertText, final PendingIntent contentIntent) {
@@ -109,17 +109,17 @@ public abstract class NotificationClient
     }
 
     /**
      * Updates a notification.
      *
      * @see NotificationHandler#update(int, long, long, String)
      */
     public void update(final int notificationID, final long aProgress, final long aProgressMax,
-            final String aAlertText) {
+                       final String aAlertText) {
         UpdateRunnable runnable = mUpdatesMap.get(notificationID);
 
         if (runnable == null) {
             runnable = new UpdateRunnable(notificationID);
             mUpdatesMap.put(notificationID, runnable);
         }
 
         // If we've already posted an update with these values, there's no
@@ -157,17 +157,17 @@ public abstract class NotificationClient
         }
 
         notify();
     }
 
     /**
      * Determines whether a notification is showing progress.
      *
-     * @see NotificationHandler#isProgressStyle(int)
+     * @see NotificationHandler#isOngoing(int)
      */
     public boolean isOngoing(int notificationID) {
         final NotificationHandler handler = mHandler;
         return handler != null && handler.isOngoing(notificationID);
     }
 
     protected void bind() {
         mReady = true;