Bug 1282222 - Clean up 'NotificationClient.java' ;r?jchen
MozReview-Commit-ID: 141QdoXyWaf
--- 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;