+
+ CoroutineScope(Dispatchers.Main).launch {
+ // Create a URL size string.
+ var urlSize: String
+
+ // Get the URL size on the IO thread.
+ withContext(Dispatchers.IO) {
+ // Get the URL size.
+ urlSize = GetUrlSizeHelper.getUrl(requireContext(), URL(urlToSave), userAgentString, cookiesEnabled)
+ }
+
+ // Display the updated URL.
+ fileSizeTextView.text = urlSize
+ }