米多多 v3.0.1版本的 MD5 值为:f69e79dbe1787218a397ad907fb8f3ab
以下内容为反编译后的 MR7ACT.java 源代码,内容仅作参考
package com.miduoduo.ui.activitys;
import android.annotation.TargetApi;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.SslErrorHandler;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.widget.LinearLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import c.a.a.n.b;
import com.base.commonlibrary.views.LoadingTip;
import com.base.commonlibrary.views.TitleLayout;
import com.just.agentweb.AgentWeb;
import com.just.agentweb.MiddlewareWebChromeBase;
import com.just.agentweb.MiddlewareWebClientBase;
import com.miduoduo.mucds.MUDDUI0100er01ACT;
import com.miduoduo.ui.bean.MyBorrowBean;
import com.miduoduo.ui.bean.PostponeBean;
import iiebbq.jchjbr.edecis.R;
public class MR7ACT extends c.a.a.n.b {
@BindView(R.id.container)
public LinearLayout container;
public Unbinder n;
public c.h.a.d p;
public String q;
@BindView(R.id.title)
public TitleLayout titleView;
public class a implements View.OnClickListener {
public a() {
}
@Override
public void onClick(View view) {
if (MR7ACT.this.l == null || MR7ACT.this.l.back()) {
return;
}
MR7ACT.this.f3100c.d("OrderStatus", "订单");
MR7ACT.this.finish();
}
}
public class b implements View.OnClickListener {
public b() {
}
@Override
public void onClick(View view) {
MR7ACT.this.finish();
}
}
public class c extends MiddlewareWebChromeBase {
public c() {
}
@Override
public void onReceivedTitle(WebView webView, String str) {
super.onReceivedTitle(webView, str);
TitleLayout titleLayout = MR7ACT.this.titleView;
if (titleLayout != null) {
titleLayout.setTitle(str);
}
}
}
public class e implements LoadingTip.d {
public e() {
}
@Override
public void a() {
MR7ACT.this.finish();
}
}
@Override
public ViewGroup E() {
return (ViewGroup) findViewById(R.id.container);
}
@Override
public b.c H() {
b.c H = super.H();
H.c(R.layout.dialog_404_tip);
H.d(R.id.finish);
return H;
}
@Override
public int I() {
return Color.parseColor("#ff0000");
}
@Override
public int J() {
return 1;
}
@Override
public MiddlewareWebChromeBase K() {
return new c();
}
@Override
public MiddlewareWebClientBase L() {
return new d();
}
@Override
public String O() {
Bundle extras = getIntent().getExtras();
if (extras != null) {
String string = extras.getString("url");
this.q = extras.getString("title");
if (getResources().getString(R.string.pay).equals(this.q)) {
MyBorrowBean myBorrowBean = (MyBorrowBean) extras.getSerializable("myBorrow");
} else {
PostponeBean postponeBean = (PostponeBean) extras.getSerializable("myBorrow");
}
this.titleView.setTitle(this.q);
c.a.a.q.d.a("payUrl", "--》》" + string);
return string;
}
return "";
}
public final void T() {
if (!c.j.c.d.d.a.f5740a.c() && !c.j.c.d.d.a.f5740a.b()) {
LoadingTip loadingTip = this.f3105h;
if (loadingTip != null) {
loadingTip.setLoadingTip(LoadingTip.LoadStatus.finish);
return;
}
return;
}
LoadingTip loadingTip2 = this.f3105h;
if (loadingTip2 != null) {
loadingTip2.setOnKnowListener(new e());
this.f3105h.setBackgroundColor(a.h.e.b.b(this.f3099b, R.color.white));
this.f3105h.setLoadingTip(LoadingTip.LoadStatus.know);
}
}
@Override
public void a() {
this.n = ButterKnife.bind(this);
c.h.a.d C = c.h.a.d.C(this);
this.p = C;
C.y(true, 0.5f);
this.p.h();
}
@Override
public boolean b() {
return false;
}
@Override
public int f() {
return R.layout.act_base_web;
}
@Override
public void h() {
}
@Override
public void i(Bundle bundle) {
this.titleView.setOnBackButtonClickListener(new a());
this.titleView.b(R.mipmap.wp_ic_close, new b());
}
@Override
public void k() {
}
@Override
public void m() {
}
@Override
public void onDestroy() {
this.n.unbind();
AgentWeb agentWeb = this.l;
if (agentWeb != null) {
agentWeb.clearWebCache();
}
c.h.a.d dVar = this.p;
if (dVar != null) {
dVar.e();
}
super.onDestroy();
}
@Override
public boolean onKeyDown(int i2, KeyEvent keyEvent) {
AgentWeb agentWeb = this.l;
if (agentWeb == null || !agentWeb.handleKeyEvent(i2, keyEvent)) {
return super.onKeyDown(i2, keyEvent);
}
return true;
}
@Override
public void onResume() {
super.onResume();
T();
}
public class d extends MiddlewareWebClientBase {
public d() {
}
@Override
public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
sslErrorHandler.proceed();
}
@Override
@TargetApi(24)
public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
String uri = webResourceRequest.getUrl().toString();
Log.e("vv", "===>>> (1)shouldOverrideUrlLoading:" + uri);
if (!uri.startsWith("http")) {
Log.i("vv", "处理自定义scheme");
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(uri));
intent.setFlags(805306368);
MR7ACT.this.startActivity(intent);
} catch (Exception e2) {
e2.printStackTrace();
}
return true;
} else if (uri == null || !uri.contains("https://nice800.com")) {
return false;
} else {
c.a.a.m.c.a.f().h(MUDDUI0100er01ACT.class);
MR7ACT.this.finish();
return true;
}
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
Log.e("vv", "===>>> (1)shouldOverrideUrlLoading:" + str);
if (!str.startsWith("http")) {
Log.i("vv", "处理自定义scheme");
try {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(str));
intent.setFlags(805306368);
MR7ACT.this.startActivity(intent);
} catch (Exception e2) {
e2.printStackTrace();
}
return true;
} else if (str == null || !str.contains("https://nice800.com")) {
return false;
} else {
c.a.a.m.c.a.f().h(MUDDUI0100er01ACT.class);
MR7ACT.this.finish();
return true;
}
}
}
}