Commit ad1f778d authored by MozLando's avatar MozLando
Browse files

Merge #5935



5935: Issue #5886: Automatically cancel 'migration completed' notification after user clicks it. r=grigoryk a=pocmo

Follow-up patch for #5886.
Co-authored-by: default avatarSebastian Kaspari <s.kaspari@gmail.com>
parents aa6db2f4 4ea86941
......@@ -106,7 +106,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