0

I have a Web-View showing some inputs and it is working fine ,except when the inputa are clicked, a google credit card autosuggestion is popping, I must remove this option and i could not find a solution,

provided image with the unwanted result

i tried this post -Disabling autosuggestion on WebView? but none of the suggested answers helped me, please help

my webView

    if (webView == null) {
        toolbar_container.show()
        toolbar_group.show()
        toolbar_tv.text = getString(R.string.credit_card_info)
        webView = NoSuggestionsWebView(this)
        val webSettings = webView?.settings
        WebViewDatabase.getInstance(this)?.clearFormData()
        webSettings?.javaScriptEnabled = true
        webSettings?.savePassword = false
        webSettings?.saveFormData= false
        webView?.setBackgroundColor(Color.parseColor("#061a3e"))
        webView?.addJavascriptInterface(WebAppInterface(this) { result ->
            val dialog =
                OneButtonDialog(
                    activity = this@MainActivity,
                    type = OneButtonDialog.LOAD_CARD_FAILED,
                    message = result
                )
            dialog.show()
        }, "Android")
        webView?.layoutParams?.height = WindowManager.LayoutParams.MATCH_PARENT
        webView?.layoutParams?.width = WindowManager.LayoutParams.MATCH_PARENT
        fragment_container.addView(webView)
        webView?.loadUrl("My_URL")
        showProgressBar()
    }
    webView?.webViewClient = object : WebViewClient() {

        override fun onPageFinished(view: WebView?, url: String?) {
            super.onPageFinished(view, url)
            dismissProgressBar()
        }
    }
Dr Mido
  • 2,414
  • 4
  • 32
  • 72
itzik pichhadze
  • 101
  • 1
  • 3

0 Answers0