1
0
Fork 0

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.
master
Sebastian Kaspari 2020-02-13 18:28:47 +01:00
parent 640d24974f
commit c45df6ecde
1 changed files with 3 additions and 0 deletions

View File

@ -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)