Remove wanted id instead of hard-coded 1...

This commit is contained in:
Daniel Martí 2013-12-12 00:29:02 +01:00
parent a0a2fe4cf0
commit 2ee5226d62

View File

@ -375,7 +375,7 @@ public class FDroid extends FragmentActivity {
public void removeNotification(int id) { public void removeNotification(int id) {
NotificationManager nMgr = (NotificationManager) getBaseContext() NotificationManager nMgr = (NotificationManager) getBaseContext()
.getSystemService(Context.NOTIFICATION_SERVICE); .getSystemService(Context.NOTIFICATION_SERVICE);
nMgr.cancel(1); nMgr.cancel(id);
} }
} }