fix 充值和客服闪退问题
This commit is contained in:
parent
b9101d881c
commit
e1fbfa6b67
|
|
@ -114,11 +114,13 @@
|
|||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".webview.BZYWebViewKeFu"
|
||||
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".webview.BZYWebViewNormal"
|
||||
android:hardwareAccelerated="true"
|
||||
android:process=":background"
|
||||
|
||||
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".act.SettingActivity"
|
||||
|
|
@ -149,5 +151,7 @@
|
|||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/file_paths" />
|
||||
</provider>
|
||||
<meta-data android:name="android.webkit.WebView.EnableSafeBrowsing"
|
||||
android:value="false" />
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
|
|||
|
|
@ -33,14 +33,17 @@
|
|||
</head>
|
||||
<body>
|
||||
<p id="connectionStatus">正在连接客服,右下角出现按钮后即可聊天...</p>
|
||||
<p id="connectionStatus2">如果未出现按钮,请等待一分钟或者重新进入.</p>
|
||||
<div class="loading" id="loadingIcon"></div>
|
||||
|
||||
<script>
|
||||
function updateStatus() {
|
||||
var statusElement = document.getElementById("connectionStatus");
|
||||
|
||||
var loadingIcon = document.getElementById("loadingIcon");
|
||||
|
||||
statusElement.textContent = "已经连接,点击按钮开始聊天吧";
|
||||
|
||||
loadingIcon.style.display = "none";
|
||||
clearInterval(loadingAnimation);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -672,10 +672,12 @@ class NewMainActivity : BaseActivity() {
|
|||
}
|
||||
findViewById<TextView>(R.id.tv_kefu).setOnClickListener {//客服
|
||||
startActivity(Intent(this, BZYWebViewKeFu::class.java))
|
||||
|
||||
drawer.close()
|
||||
}
|
||||
findViewById<TextView>(R.id.tv_fds).setOnClickListener {//防丢失
|
||||
startActivity(Intent(this, LossPreventionActivity::class.java))
|
||||
|
||||
drawer.close()
|
||||
}
|
||||
drawer = findViewById(R.id.drawer)
|
||||
|
|
@ -703,6 +705,7 @@ class NewMainActivity : BaseActivity() {
|
|||
intent.putExtra("url", rcURL)
|
||||
// startActivity(intent)
|
||||
startActivityForResult(intent, REQUEST_CODE_PAY_WEB_VIEW_ACTIVITY)
|
||||
|
||||
}
|
||||
|
||||
private fun showPayResultDialog() {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
package com.yingmao.clash.util;
|
||||
|
||||
public class test {
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package com.yingmao.clash.webview
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.os.Bundle
|
||||
import android.os.CountDownTimer
|
||||
|
|
@ -12,12 +13,6 @@ import com.yingmao.clash.BuildConfig
|
|||
import com.yingmao.clash.R
|
||||
import com.yingmao.clash.common.log.Log
|
||||
import com.yingmao.clash.util.StatusBarUtils
|
||||
import com.yingmao.clash.view.RxToast
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
class BZYWebViewKeFu : AppCompatActivity() {
|
||||
private lateinit var webView: WebView
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.yingmao.clash.webview
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.graphics.Bitmap
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
</RelativeLayout>
|
||||
|
||||
<android.webkit.WebView
|
||||
<WebView
|
||||
android:layout_below="@+id/rl_title_bar"
|
||||
android:id="@+id/webView"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
|||
Loading…
Reference in New Issue