Épingler la notification en haut de la zone de notification

J'ai une Notification de mise à jour (c'est à dire envoyé) toutes les trois secondes. J'ai réglé le FLAG_ONGOING_EVENT drapeau et la FLAG_NO_CLEAR drapeau alors qui est toujours montré. Le problème, c'est que si par exemple un téléchargement est actif (qui affiche une barre de progression dans la zone de notification) des deux notifications constamment changer de position, car ils sont actualisées toutes les quelques secondes.

Comment puis-je broches ma notification en haut de la liste (ou à une position statique), de sorte qu'il arrête de sauter partout à chaque fois que je le mettre à jour en appelant NotificationManager.notify()?

Edit: Voici le code de mise à jour de la notification. Il est lancé à toutes les trois secondes.

Notification notification = new Notification();
notification.contentView = appBarNotification; //this sets the changed notification content
notification.flags |= Notification.FLAG_ONGOING_EVENT;  
notification.flags |= Notification.FLAG_NO_CLEAR; 

Intent notificationIntent = new Intent();
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
notification.contentIntent = contentIntent;
notification.icon = R.drawable.icon;

nm.notify(APP_BAR_NOTIFICATION, notification);

source d'informationauteur ubuntudroid