diff options
Diffstat (limited to 'src/com/android/providers/downloads/RealSystemFacade.java')
-rw-r--r-- | src/com/android/providers/downloads/RealSystemFacade.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/providers/downloads/RealSystemFacade.java b/src/com/android/providers/downloads/RealSystemFacade.java index 710da10d..421fc2be 100644 --- a/src/com/android/providers/downloads/RealSystemFacade.java +++ b/src/com/android/providers/downloads/RealSystemFacade.java @@ -81,13 +81,18 @@ class RealSystemFacade implements SystemFacade { } @Override - public void postNotification(int id, Notification notification) { - mNotificationManager.notify(id, notification); + public void postNotification(long id, Notification notification) { + /** + * TODO: The system notification manager takes ints, not longs, as IDs, but the download + * manager uses IDs take straight from the database, which are longs. This will have to be + * dealt with at some point. + */ + mNotificationManager.notify((int) id, notification); } @Override - public void cancelNotification(int id) { - mNotificationManager.cancel(id); + public void cancelNotification(long id) { + mNotificationManager.cancel((int) id); } @Override |