diff options
author | Anshuman Pandey <anshuman.pandey@stericsson.com> | 2011-03-01 12:09:08 +0530 |
---|---|---|
committer | christian bejram <christian.bejram@stericsson.com> | 2011-06-15 14:49:53 +0200 |
commit | fad5445c66ca6190ad37515018996c61d9b2b0a5 (patch) | |
tree | 2185a96e749a3fad20b7e45e26c4d7eafd20dc24 /location | |
parent | 94062517ae5573f9a1a877a83fe7d8e6d1a2c350 (diff) | |
download | frameworks_base-fad5445c66ca6190ad37515018996c61d9b2b0a5.zip frameworks_base-fad5445c66ca6190ad37515018996c61d9b2b0a5.tar.gz frameworks_base-fad5445c66ca6190ad37515018996c61d9b2b0a5.tar.bz2 |
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: Anshuman Pandey <anshuman.pandey@stericsson.com>
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
Diffstat (limited to 'location')
-rwxr-xr-x | location/java/com/android/internal/location/GpsNetInitiatedHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java index ffc3346..29dec63 100755 --- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java +++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java @@ -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 |