Dismiss "migration notification" after leaving migration activity.

For https://github.com/mozilla-mobile/android-components/issues/5886.

With this patch we will dismiss the "migration completed" notification once the users
clicks on the button in the migration activity.
fennec/beta
Sebastian Kaspari 4 years ago
parent 640d24974f
commit c45df6ecde

@ -16,6 +16,7 @@ import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.activity_migration.*
import kotlinx.android.synthetic.main.migration_list_item.view.*
import mozilla.components.support.migration.AbstractMigrationProgressActivity
import mozilla.components.support.migration.AbstractMigrationService
import mozilla.components.support.migration.Migration
import mozilla.components.support.migration.Migration.Bookmarks
import mozilla.components.support.migration.Migration.History
@ -58,6 +59,8 @@ class MigrationProgressActivity : AbstractMigrationProgressActivity() {
migration_button.apply {
setOnClickListener {
AbstractMigrationService.dismissNotification(context)
finish()
overridePendingTransition(0, 0)

Loading…
Cancel
Save