File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
quicklib/src/main/java/com/sdwfqin/quicklib/webview Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ buildscript {
77 jcenter()
88 }
99 dependencies {
10- classpath ' com.android.tools.build:gradle:3.4.2 '
10+ classpath ' com.android.tools.build:gradle:3.5.0 '
1111 classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
1212 classpath ' com.github.dcendents:android-maven-gradle-plugin:2.1'
1313 // classpath "com.tencent.bugly:tinker-support:1.1.5"
Original file line number Diff line number Diff line change 6565 // utils
6666 " utilcodex" : " com.blankj:utilcodex:1.24.4" ,
6767 // agentweb
68- " agentweb" : " com.just.agentweb:agentweb:4.0 .2" ,
68+ " agentweb" : " com.just.agentweb:agentweb:4.1 .2" ,
6969 // google
7070 " multidex" : " androidx.multidex:multidex:2.0.1" ,
7171 " gson" : " com.google.code.gson:gson:2.8.2" ,
Original file line number Diff line number Diff line change 11package com .sdwfqin .quicklib .webview ;
22
33import android .view .KeyEvent ;
4- import android .webkit .WebChromeClient ;
54import android .webkit .WebView ;
65import android .widget .LinearLayout ;
76
87import com .blankj .utilcode .util .StringUtils ;
98import com .just .agentweb .AgentWeb ;
9+ import com .just .agentweb .WebChromeClient ;
1010import com .sdwfqin .quicklib .R ;
1111import com .sdwfqin .quicklib .base .BaseActivity ;
1212
@@ -56,7 +56,7 @@ private void initWebView() {
5656 //传入AgentWeb 的父控件 ,如果父控件为 RelativeLayout , 那么第二参数需要传入 RelativeLayout.LayoutParams ,第一个参数和第二个参数应该对应。
5757 .setAgentWebParent (mContainer , new LinearLayout .LayoutParams (-1 , -1 ))
5858 .useDefaultIndicator ()// 使用默认进度条
59- .setWebChromeClient (new WebChromeClient () {
59+ .setWebChromeClient (new WebChromeClient (){
6060 @ Override
6161 public void onReceivedTitle (WebView view , String title ) {
6262 super .onReceivedTitle (view , title );
You can’t perform that action at this time.
0 commit comments