Skip to content

Commit e2852a7

Browse files
committed
Fix break from abandoned attempt to thread the GCM push ID as the Notification ID
1 parent 6fe852b commit e2852a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Parse/src/main/java/com/parse/ParseNotificationManager.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public int getNotificationCount() {
4848
return notificationCount.get();
4949
}
5050

51-
public void showNotification(Context context, int id, Notification notification) {
51+
public void showNotification(Context context, Notification notification) {
5252
if (context != null && notification != null) {
5353
notificationCount.incrementAndGet();
5454

@@ -58,9 +58,7 @@ public void showNotification(Context context, int id, Notification notification)
5858
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
5959

6060
// Pick an id that probably won't overlap anything
61-
if (id == 0) {
62-
id = (int) System.currentTimeMillis();
63-
}
61+
int id = (int) System.currentTimeMillis();
6462

6563
try {
6664
nm.notify(id, notification);

0 commit comments

Comments
 (0)