我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9
以下内容为反编译后的 g.java 源代码,内容仅作参考
package com.anythink.expressad.atsignalcommon.windvane;
import android.text.TextUtils;
import android.webkit.WebView;
public final class g implements b {
private static g f2986a = new g();
private g() {
}
private static g a() {
return f2986a;
}
@Override
public final void a(Object obj, String str, String str2) {
String format;
if (obj instanceof a) {
a aVar = (a) obj;
if (TextUtils.isEmpty(str2)) {
format = String.format("javascript:window.MvBridge.fireEvent('%s', '');", str);
} else {
format = String.format("javascript:window.MvBridge.fireEvent('%s','%s');", str, n.c(str2));
}
if (aVar.f2983a != null) {
try {
aVar.f2983a.loadUrl(format);
} catch (Exception e) {
e.printStackTrace();
} catch (Throwable th) {
th.printStackTrace();
}
}
}
}
private static void a(WebView webView, String str, String str2) {
String format;
if (TextUtils.isEmpty(str2)) {
format = String.format("javascript:window.MvBridge.fireEvent('%s', '');", str);
} else {
format = String.format("javascript:window.MvBridge.fireEvent('%s','%s');", str, n.c(str2));
}
if (webView != null) {
try {
webView.loadUrl(format);
} catch (Exception e) {
e.printStackTrace();
} catch (Throwable th) {
th.printStackTrace();
}
}
}
@Override
public final void a(Object obj, String str) {
if (obj instanceof a) {
a aVar = (a) obj;
String format = TextUtils.isEmpty(str) ? String.format("javascript:window.OW.onSuccess(%s,'');", aVar.g) : String.format("javascript:window.OW.onSuccess(%s,'%s');", aVar.g, n.c(str));
if (aVar.f2983a != null) {
try {
aVar.f2983a.loadUrl(format);
} catch (Exception e) {
e.printStackTrace();
} catch (Throwable th) {
th.printStackTrace();
}
}
}
}
@Override
public final void b(Object obj, String str) {
if (obj instanceof a) {
a aVar = (a) obj;
if (TextUtils.isEmpty(str)) {
String.format("javascript:window.MvBridge.onFailure(%s,'');", aVar.g);
} else {
str = n.c(str);
}
String format = String.format("javascript:window.MvBridge.onFailure(%s,'%s');", aVar.g, str);
if (aVar.f2983a != null) {
try {
aVar.f2983a.loadUrl(format);
} catch (Exception e) {
e.printStackTrace();
} catch (Throwable th) {
th.printStackTrace();
}
}
}
}
}