|
@ -2,11 +2,13 @@ package com.nivesh.production.bajajfd.ui.activity |
|
|
|
|
|
|
|
|
import android.annotation.SuppressLint |
|
|
import android.annotation.SuppressLint |
|
|
import android.app.Dialog |
|
|
import android.app.Dialog |
|
|
|
|
|
import android.graphics.Bitmap |
|
|
import android.graphics.drawable.Drawable |
|
|
import android.graphics.drawable.Drawable |
|
|
import android.os.Bundle |
|
|
import android.os.Bundle |
|
|
import android.util.Log |
|
|
import android.util.Log |
|
|
import android.view.WindowManager |
|
|
import android.view.WindowManager |
|
|
import android.webkit.WebView |
|
|
import android.webkit.WebView |
|
|
|
|
|
import android.webkit.WebViewClient |
|
|
import android.widget.TextView |
|
|
import android.widget.TextView |
|
|
import androidx.fragment.app.Fragment |
|
|
import androidx.fragment.app.Fragment |
|
|
import androidx.lifecycle.ViewModelProvider |
|
|
import androidx.lifecycle.ViewModelProvider |
|
@ -466,26 +468,26 @@ class BajajFdMainActivity : BaseActivity() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// wVPay.setWebViewClient(object : WebViewClient() { |
|
|
|
|
|
// override fun onPageStarted(view: WebView, url: String, favicon: Bitmap?) { |
|
|
|
|
|
// super.onPageStarted(view, url, favicon) |
|
|
|
|
|
// Log.e("onPageStarted", "-->$url") |
|
|
|
|
|
// |
|
|
|
|
|
// |
|
|
|
|
|
// wVPay.loadUrl("file:///android_asset/paymentpageform.html") |
|
|
|
|
|
// |
|
|
|
|
|
// val link1 = "pp" |
|
|
|
|
|
// val link2 = valur |
|
|
|
|
|
// view.loadUrl("javascript:(function(){document.body.innerHTML = document.body.innerHTML.replace('$link1', '$link2')})()") |
|
|
|
|
|
// |
|
|
|
|
|
// |
|
|
|
|
|
// |
|
|
|
|
|
// if (url.isNotEmpty() && url.contains("CustomerPaymentResponse")) { |
|
|
|
|
|
// |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
wVPay.setWebViewClient(object : WebViewClient() { |
|
|
|
|
|
override fun onPageStarted(view: WebView, url: String, favicon: Bitmap?) { |
|
|
|
|
|
super.onPageStarted(view, url, favicon) |
|
|
|
|
|
Log.e("onPageStarted", "-->$url") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wVPay.loadUrl("file:///android_asset/paymentpageform.html") |
|
|
|
|
|
|
|
|
|
|
|
val link1 = "pp" |
|
|
|
|
|
val link2 = valur |
|
|
|
|
|
view.loadUrl("javascript:(function(){document.body.innerHTML = document.body.innerHTML.replace('$link1', '$link2')})()") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (url.isNotEmpty() && url.contains("CustomerPaymentResponse")) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|