Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fad5445c authored by Anshuman Pandey's avatar Anshuman Pandey Committed by christian bejram
Browse files

Add FLAG_AUTO_CANCEL flag for multiple supl notifications.



Added FLAG_AUTO_CANCEL to notification flags in GpsNetInitiatedHandler.java.
This is done to clear consecutive notifications in UI

Change-Id: I84be36af0b556f43ffd7d51ac04ff12300090ca5
Signed-off-by: default avatarAnshuman Pandey <anshuman.pandey@stericsson.com>
Signed-off-by: default avatarChristian Bejram <christian.bejram@stericsson.com>
parent 94062517
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ public class GpsNetInitiatedHandler {
            mNiNotification.defaults &= ~Notification.DEFAULT_SOUND;
        }        

        mNiNotification.flags = Notification.FLAG_ONGOING_EVENT;
        mNiNotification.flags = Notification.FLAG_ONGOING_EVENT | Notification.FLAG_AUTO_CANCEL;
        mNiNotification.tickerText = getNotifTicker(notif, mContext);

        // if not to popup dialog immediately, pending intent will open the dialog