fun prepareSaveDialog(context: Context, supportFragmentManager: FragmentManager, urlString: String, userAgent: String, cookiesEnabled: Boolean) {
// Use a coroutine to prepare the save dialog.
CoroutineScope(Dispatchers.Main).launch {
fun prepareSaveDialog(context: Context, supportFragmentManager: FragmentManager, urlString: String, userAgent: String, cookiesEnabled: Boolean) {
// Use a coroutine to prepare the save dialog.
CoroutineScope(Dispatchers.Main).launch {