2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/25003: Pop back stack on main thread.

This commit is contained in:
mcarare 2022-04-28 13:31:45 +03:00 committed by mergify[bot]
parent f41db6fb0b
commit 43840ec324

View File

@ -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()
launch(Main) {
navController.popBackStack()
}
}
}
}