Make emergency notification dismissable

Bug: 145608692
Fixes: 145608692

Test: on device
Change-Id: I7bf7d1786b6eed5fc32fdf438a223ec0020a4888
(cherry picked from commit 1f503e45f7)
This commit is contained in:
Yu-Han Yang
2019-12-05 14:07:23 -08:00
parent c6e3070274
commit cee2ecc916

View File

@@ -637,7 +637,7 @@ class GnssVisibilityControl {
return new Notification.Builder(context, SystemNotificationChannels.NETWORK_ALERTS)
.setSmallIcon(com.android.internal.R.drawable.stat_sys_gps_on)
.setWhen(0)
.setOngoing(true)
.setOngoing(false)
.setAutoCancel(true)
.setColor(context.getColor(
com.android.internal.R.color.system_notification_accent_color))