summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnshuman Pandey <anshuman.pandey@stericsson.com>2011-03-01 12:09:08 +0530
committerchristian bejram <christian.bejram@stericsson.com>2011-06-15 14:49:53 +0200
commitfad5445c66ca6190ad37515018996c61d9b2b0a5 (patch)
tree2185a96e749a3fad20b7e45e26c4d7eafd20dc24
parent94062517ae5573f9a1a877a83fe7d8e6d1a2c350 (diff)
downloadframeworks_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>
-rwxr-xr-xlocation/java/com/android/internal/location/GpsNetInitiatedHandler.java2
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