Android notifications does not disappear after click
<p>I have a piece of code on my android studio project:</p>

<pre><code>private void sendNotification(String msg) {
        mNotificationManager = (NotificationManager)
                this.getSystemService(Context.NOTIFICATION_SERVICE);

        PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
                new Intent(this, MainActivity.class), 0);

        NotificationCompat.Builder mBuilder =
                new NotificationCompat.Builder(this)
                        // .setSmallIcon(R.drawable.ic_stat_gcm)
                        .setContentTitle("New updates from StoriesCity!")
                        .setSmallIcon(R.drawable.ic_launcher)
                        .setStyle(new NotificationCompat.BigTextStyle()
                                .bigText(msg))
                        .setContentText(msg);


        mBuilder.setContentIntent(contentIntent);
        mNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());
    }
</code></pre>

<p>It's working fine and i see the notification, but when i click on it it does not go away..</p>

<p>Maybe it's because i'm using .notify ?
Please help me modify the code to makeit disapeair on click.</p>

<p>I'm a beginner :)</p>