Wolves Themes v1.0版本的 MD5 值为:cddc92b47f6b7c4a195c9625507eb51c
以下内容为反编译后的 g.java 源代码,内容仅作参考
package com.mobvista.msdk.mvjscommon.windvane;
import android.text.TextUtils;
import android.webkit.WebView;
public final class g {
private static g a = new g();
private g() {
}
public static g a() {
return a;
}
public static void a(WebView webView, String str, String str2) {
String format = TextUtils.isEmpty(str2) ? String.format("javascript:window.WindVane.fireEvent('%s', '');", str) : String.format("javascript:window.WindVane.fireEvent('%s','%s');", str, j.c(str2));
if (webView != null) {
try {
webView.loadUrl(format);
} catch (Exception e) {
e.printStackTrace();
}
}
}
public static void a(Object obj, String str) {
if (obj instanceof a) {
a aVar = (a) obj;
String format = TextUtils.isEmpty(str) ? String.format("javascript:window.WindVane.onSuccess(%s,'');", aVar.g) : String.format("javascript:window.WindVane.onSuccess(%s,'%s');", aVar.g, j.c(str));
if (aVar.a != null) {
try {
aVar.a.loadUrl(format);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
public static void b(Object obj, String str) {
if (obj instanceof a) {
a aVar = (a) obj;
if (TextUtils.isEmpty(str)) {
String.format("javascript:window.WindVane.onFailure(%s,'');", aVar.g);
} else {
str = j.c(str);
}
String format = String.format("javascript:window.WindVane.onFailure(%s,'%s');", aVar.g, str);
if (aVar.a != null) {
try {
aVar.a.loadUrl(format);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
}