Delete all notification when service destroy.
authorVincent Veronis <veroni_v@epitech.net>
Fri, 04 Dec 2009 16:47:46 +0100
changeset 562 5e48a0729411
parent 561 f29b0522334d
child 563 e561bc44c396
Delete all notification when service destroy.
src/com/beem/project/beem/BeemService.java
--- a/src/com/beem/project/beem/BeemService.java	Fri Dec 04 16:24:46 2009 +0100
+++ b/src/com/beem/project/beem/BeemService.java	Fri Dec 04 16:47:46 2009 +0100
@@ -179,7 +179,7 @@
     @Override
     public void onDestroy() {
 	super.onDestroy();
-	mNotificationManager.cancel(NOTIFICATION_STATUS_ID);
+	mNotificationManager.cancelAll();
 	if (mConnection.isAuthentificated())
 	    mConnection.disconnect();
 	Log.d(TAG, "ONDESTROY");