diff options
Diffstat (limited to '')
-rw-r--r-- | src/de/gultsch/chat/ui/ConversationActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/ui/ConversationActivity.java b/src/de/gultsch/chat/ui/ConversationActivity.java index 29d4d65c..ca9bedf7 100644 --- a/src/de/gultsch/chat/ui/ConversationActivity.java +++ b/src/de/gultsch/chat/ui/ConversationActivity.java @@ -12,6 +12,7 @@ import de.gultsch.chat.utils.UIHelper; import android.net.Uri; import android.os.Bundle; import android.app.FragmentTransaction; +import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.support.v4.widget.SlidingPaneLayout; @@ -278,6 +279,12 @@ public class ConversationActivity extends XmppActivity { return super.onKeyDown(keyCode, event); } + public void onStart() { + super.onStart(); + NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); + nm.cancelAll(); + } + @Override protected void onPause() { super.onPause(); |