For #25003: Pop back stack on main thread.

pull/543/head
mcarare 2 years ago committed by mergify[bot]
parent b76cae83d6
commit f028dbc03b

@ -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
@ -176,7 +177,9 @@ class DefaultHistoryMetadataGroupController(
)
GleanHistory.searchTermGroupRemoveAll.record(NoExtras())
allDeletedSnackbar.invoke()
navController.popBackStack()
launch(Main) {
navController.popBackStack()
}
}
}
}

Loading…
Cancel
Save