Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #25003: Pop back stack on main thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarare authored and mergify[bot] committed Apr 29, 2022
1 parent b76cae8 commit f028dbc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.content.Context
import androidx.navigation.NavController
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dispatchers.Main
import kotlinx.coroutines.launch
import mozilla.components.browser.state.action.HistoryMetadataAction
import mozilla.components.browser.state.store.BrowserStore
Expand Down Expand Up @@ -176,7 +177,9 @@ class DefaultHistoryMetadataGroupController(
)
GleanHistory.searchTermGroupRemoveAll.record(NoExtras())
allDeletedSnackbar.invoke()
navController.popBackStack()
launch(Main) {
navController.popBackStack()
}
}
}
}

0 comments on commit f028dbc

Please sign in to comment.