@@ -107,7 +107,7 @@ import androidx.lifecycle.LiveData
107107import androidx.lifecycle.viewmodel.compose.viewModel
108108import com.salesforce.androidsdk.R.string.sf__back_button_content_description
109109import com.salesforce.androidsdk.R.string.sf__clear_cookies
110- import com.salesforce.androidsdk.R.string.sf__clear_caches
110+ import com.salesforce.androidsdk.R.string.sf__clear_cache
111111import com.salesforce.androidsdk.R.string.sf__launch_idp
112112import com.salesforce.androidsdk.R.string.sf__loading_indicator
113113import com.salesforce.androidsdk.R.string.sf__more_options
@@ -150,7 +150,7 @@ fun LoginView() {
150150 titleTextColor = viewModel.titleTextColor ? : viewModel.dynamicHeaderTextColor.value,
151151 showServerPicker = viewModel.showServerPicker,
152152 clearCookies = { viewModel.clearCookies() },
153- clearCaches = { viewModel.clearCaches (activity.webView) },
153+ clearWebViewCache = { viewModel.clearWebViewCache (activity.webView) },
154154 reloadWebView = { viewModel.reloadWebView() },
155155 shouldShowBackButton = viewModel.shouldShowBackButton,
156156 finish = { activity.handleBackBehavior() },
@@ -248,7 +248,7 @@ internal fun DefaultTopAppBar(
248248 titleTextColor : Color ,
249249 showServerPicker : MutableState <Boolean >,
250250 clearCookies : () -> Unit ,
251- clearCaches : () -> Unit ,
251+ clearWebViewCache : () -> Unit ,
252252 reloadWebView : () -> Unit ,
253253 shouldShowBackButton : Boolean ,
254254 finish : () -> Unit ,
@@ -298,8 +298,8 @@ internal fun DefaultTopAppBar(
298298 reloadWebView()
299299 showMenu = false
300300 }
301- MenuItem (stringResource(sf__clear_caches )) {
302- clearCaches ()
301+ MenuItem (stringResource(sf__clear_cache )) {
302+ clearWebViewCache ()
303303 reloadWebView()
304304 showMenu = false
305305 }
@@ -482,7 +482,7 @@ private fun AppBarPreview() {
482482 titleTextColor = Color .Black ,
483483 showServerPicker = remember { mutableStateOf(false ) },
484484 clearCookies = { },
485- clearCaches = { },
485+ clearWebViewCache = { },
486486 reloadWebView = { },
487487 shouldShowBackButton = false ,
488488 finish = { },
@@ -502,7 +502,7 @@ private fun AppBarLoadingPreview() {
502502 titleTextColor = Color .Black ,
503503 showServerPicker = remember { mutableStateOf(false ) },
504504 clearCookies = { },
505- clearCaches = { },
505+ clearWebViewCache = { },
506506 reloadWebView = { },
507507 shouldShowBackButton = false ,
508508 finish = { },
@@ -522,7 +522,7 @@ private fun AppBarBackButtonPreview() {
522522 titleTextColor = Color .Black ,
523523 showServerPicker = remember { mutableStateOf(false ) },
524524 clearCookies = { },
525- clearCaches = { },
525+ clearWebViewCache = { },
526526 reloadWebView = { },
527527 shouldShowBackButton = true ,
528528 finish = { },
@@ -542,7 +542,7 @@ private fun AppBarDarkPreview() {
542542 titleTextColor = Color .White ,
543543 showServerPicker = remember { mutableStateOf(false ) },
544544 clearCookies = { },
545- clearCaches = { },
545+ clearWebViewCache = { },
546546 reloadWebView = { },
547547 shouldShowBackButton = true ,
548548 finish = { },
@@ -562,7 +562,7 @@ private fun BlueAppBarPreview() {
562562 titleTextColor = Color .White ,
563563 showServerPicker = remember { mutableStateOf(false ) },
564564 clearCookies = { },
565- clearCaches = { },
565+ clearWebViewCache = { },
566566 reloadWebView = { },
567567 shouldShowBackButton = true ,
568568 finish = { },
@@ -582,7 +582,7 @@ private fun BlueAppBarLoadingPreview() {
582582 titleTextColor = Color .White ,
583583 showServerPicker = remember { mutableStateOf(false ) },
584584 clearCookies = { },
585- clearCaches = { },
585+ clearWebViewCache = { },
586586 reloadWebView = { },
587587 shouldShowBackButton = true ,
588588 finish = { },
@@ -601,7 +601,7 @@ private fun CustomTextAppBarPreview() {
601601 titleTextColor = Color .White ,
602602 showServerPicker = remember { mutableStateOf(false ) },
603603 clearCookies = { },
604- clearCaches = { },
604+ clearWebViewCache = { },
605605 reloadWebView = { },
606606 shouldShowBackButton = false ,
607607 finish = { },
@@ -620,7 +620,7 @@ private fun CustomTextAppBarLoadingPreview() {
620620 titleTextColor = Color .White ,
621621 showServerPicker = remember { mutableStateOf(false ) },
622622 clearCookies = { },
623- clearCaches = { },
623+ clearWebViewCache = { },
624624 reloadWebView = { },
625625 shouldShowBackButton = false ,
626626 finish = { },
@@ -639,7 +639,7 @@ private fun LongCustomTextAppBarPreview() {
639639 titleTextColor = Color .Black ,
640640 showServerPicker = remember { mutableStateOf(false ) },
641641 clearCookies = { },
642- clearCaches = { },
642+ clearWebViewCache = { },
643643 reloadWebView = { },
644644 shouldShowBackButton = true ,
645645 finish = { },
0 commit comments