From 9362ef000e96538e21fe2499c4f3af92c0a4751a Mon Sep 17 00:00:00 2001 From: Ajesh R Pai Date: Mon, 29 Jan 2024 12:17:56 +0530 Subject: [PATCH] * Renames: WebView to SiteMonitorWebView --- .../android/ui/sitemonitor/SiteMonitorTabFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/sitemonitor/SiteMonitorTabFragment.kt b/WordPress/src/main/java/org/wordpress/android/ui/sitemonitor/SiteMonitorTabFragment.kt index c0cf2b9db50c..8fb61cc8ed03 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/sitemonitor/SiteMonitorTabFragment.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/sitemonitor/SiteMonitorTabFragment.kt @@ -95,7 +95,7 @@ class SiteMonitorTabFragment : Fragment(), SiteMonitorWebViewClient.SiteMonitorW val uiState by viewModel.uiState.collectAsState() when (uiState) { is SiteMonitorUiState.Preparing -> LoadingState() - is SiteMonitorUiState.Prepared, is SiteMonitorUiState.Loaded -> TheWebView(uiState) + is SiteMonitorUiState.Prepared, is SiteMonitorUiState.Loaded -> SiteMonitorWebView(uiState) is SiteMonitorUiState.Error -> SiteMonitorError(uiState as SiteMonitorUiState.Error) } } @@ -134,7 +134,7 @@ class SiteMonitorTabFragment : Fragment(), SiteMonitorWebViewClient.SiteMonitorW @SuppressLint("SetJavaScriptEnabled") @Composable - private fun TheWebView(uiState: SiteMonitorUiState) { + private fun SiteMonitorWebView(uiState: SiteMonitorUiState) { var webView: WebView? by remember { mutableStateOf(null) } if (uiState is SiteMonitorUiState.Prepared) {