|
|
@@ -90,7 +90,6 @@ class CarromFragment :
|
|
|
|
|
|
@SuppressLint("ClickableViewAccessibility")
|
|
|
override fun onCocosGameViewCreated(viewBinding: FragmentCarromBinding) {
|
|
|
- inflateCocosWebView(viewBinding)
|
|
|
initByIntent(arguments)
|
|
|
viewBinding.lContainer.setOnTouchListener { _, _ ->
|
|
|
if (quickChatComp?.isShow() == true) {
|
|
|
@@ -107,7 +106,7 @@ class CarromFragment :
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private fun inflateCocosWebView(viewBinding: FragmentCarromBinding) {
|
|
|
+ override fun inflateCocosWebView(viewBinding: FragmentCarromBinding) {
|
|
|
webView = CocosGameWebView(viewBinding.root.context).apply {
|
|
|
viewBinding.flWebContainer.addView(this)
|
|
|
updateLayoutParams<FrameLayout.LayoutParams> {
|