Commit 4ea86941 authored by Sebastian Kaspari's avatar Sebastian Kaspari
Browse files

Issue #5886: Automatically cancel 'migration completed' notification after user clicks it.

parent 0aed3f06
......@@ -104,7 +104,9 @@ abstract class AbstractMigrationService : Service() {
val channel: String = NOTIFICATION_CHANNEL_ID
val titleRes: Int = R.string.mozac_support_migration_complete_notification_title
val contentRes: Int = R.string.mozac_support_migration_complete_notification_text
val builder = getNotificationBuilder(titleRes, contentRes, channel)
val builder = getNotificationBuilder(titleRes, contentRes, channel).apply {
setAutoCancel(true)
}
NotificationManagerCompat.from(this).notify(
NOTIFICATION_TAG,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment