Mad Aces v1.2.2.3版本的 MD5 值为:f29ebd7c5808053d9f3f3722a5db1688
以下内容为反编译后的 at.java 源代码,内容仅作参考
package com.chartboost.sdk.impl;
import android.content.Context;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout;
import com.chartboost.sdk.Libraries.CBLogging;
import com.chartboost.sdk.Libraries.CBUtility;
import com.chartboost.sdk.Libraries.e;
import com.heyzap.http.AsyncHttpResponseHandler;
import com.heyzap.sdk.ads.HeyzapAds;
public class at extends ap {
private WebView a;
private View.OnClickListener b;
public at(aw awVar, Context context) {
super(context);
this.b = null;
this.a = new WebView(context);
addView(this.a, new LinearLayout.LayoutParams(-1, -1));
this.a.setBackgroundColor(0);
this.a.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url == null) {
return false;
}
if (url.contains(HeyzapAds.Network.CHARTBOOST) && url.contains(HeyzapAds.NetworkCallback.CLICK) && at.this.b != null) {
at.this.b.onClick(at.this);
}
return true;
}
});
}
@Override
public void setOnClickListener(View.OnClickListener clickListener) {
super.setOnClickListener(clickListener);
this.b = clickListener;
}
@Override
public void a(e.a aVar, int i) {
String e = aVar.e("html");
if (e != null) {
try {
this.a.loadDataWithBaseURL("file:///android_res/", e, "text/html", AsyncHttpResponseHandler.DEFAULT_CHARSET, null);
} catch (Exception e2) {
CBLogging.b("AppCellWebView", "Exception raised loading data into webview", e2);
}
}
}
@Override
public int a() {
return CBUtility.a(100, getContext());
}
}