-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebViewActivity.java
More file actions
56 lines (50 loc) · 1.76 KB
/
WebViewActivity.java
File metadata and controls
56 lines (50 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* android.view.View
* android.webkit.WebChromeClient
* android.webkit.WebView
* android.webkit.WebViewClient
*/
package com.lianhezhuli.btnotification.function;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import butterknife.BindView;
import com.lianhezhuli.btnotification.base.BaseActivity;
import com.lianhezhuli.btnotification.function._$$Lambda$WebViewActivity$_8tSgNxI_yjDE59T2gc6Usg0g1w;
import com.qmuiteam.qmui.widget.QMUITopBarLayout;
public class WebViewActivity
extends BaseActivity {
@BindView(value=2131296920)
QMUITopBarLayout mTopBar;
@BindView(value=2131296919)
WebView webView;
@Override
protected void initView() {
this.mTopBar.setTitle(2131755299);
this.mTopBar.addLeftBackImageButton().setOnClickListener(new _$$Lambda$WebViewActivity$_8tSgNxI_yjDE59T2gc6Usg0g1w(this));
this.webView.getSettings().setJavaScriptEnabled(true);
this.webView.loadUrl("https://bt.lianhezhuli.com/static/notification/privacy_policy_gp.html");
this.webView.setWebViewClient(new WebViewClient(this){
final WebViewActivity this$0;
{
this.this$0 = webViewActivity;
}
public boolean shouldOverrideUrlLoading(WebView webView, String string) {
webView.loadUrl(string);
return true;
}
});
this.webView.setWebChromeClient(new WebChromeClient());
}
public /* synthetic */ void lambda$initView$0$WebViewActivity(View view) {
this.finish();
}
@Override
protected int setLayoutId() {
return 2131492901;
}
}