How I can Resolve this warning:
This method should only be accessed from tests or within private scope
It appear after I upgrade the android studio to the latest version!!!
@Composable
fun AppBody() {
val navController = rememberNavController()
val context = LocalContext.current
val width = LocalConfiguration.current.screenWidthDp
Scaffold(
bottomBar = {
AndroidView(
factory = {
AdView(it).apply {
setAdSize(
AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(
context,
width
)
)
adUnitId = "*****"
loadAd(AdRequest.Builder().build())
}
},
)
},
content = {
Box(Modifier.padding(it)) {
AppNavHostController(navController = navController)
}
}
)
}