CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 j.java 源代码,内容仅作参考
package i.h.b0;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.webkit.WebView;
import com.facebook.LoggingBehavior;
import com.facebook.internal.WebDialog;
import java.util.HashSet;
import org.json.JSONException;
import org.json.JSONObject;
public class j extends WebDialog {
public static final String x = j.class.getName();
public boolean f10053w;
public class a implements Runnable {
public a() {
}
@Override
public void run() {
if (i.h.b0.n0.l.a.b(this)) {
return;
}
try {
j.super.cancel();
} catch (Throwable th) {
i.h.b0.n0.l.a.a(th, this);
}
}
}
public j(Context context, String str, String str2) {
super(context, str);
this.f2458j = str2;
}
@Override
public Bundle c(String str) {
Bundle O = f0.O(Uri.parse(str).getQuery());
String string = O.getString("bridge_args");
O.remove("bridge_args");
if (!f0.F(string)) {
try {
O.putBundle("com.facebook.platform.protocol.BRIDGE_ARGS", c.a(new JSONObject(string)));
} catch (JSONException unused) {
HashSet<LoggingBehavior> hashSet = i.h.i.a;
}
}
String string2 = O.getString("method_results");
O.remove("method_results");
if (!f0.F(string2)) {
if (f0.F(string2)) {
string2 = "{}";
}
try {
O.putBundle("com.facebook.platform.protocol.RESULT_ARGS", c.a(new JSONObject(string2)));
} catch (JSONException unused2) {
HashSet<LoggingBehavior> hashSet2 = i.h.i.a;
}
}
O.remove("version");
O.putInt("com.facebook.platform.protocol.PROTOCOL_VERSION", a0.l());
return O;
}
@Override
public void cancel() {
WebView webView = this.f2460l;
if (this.f2467s && !this.f2465q && webView != null && webView.isShown()) {
if (this.f10053w) {
return;
}
this.f10053w = true;
webView.loadUrl("javascript:(function() { var event = document.createEvent('Event'); event.initEvent('fbPlatformDialogMustClose',true,true); document.dispatchEvent(event);})();");
new Handler(Looper.getMainLooper()).postDelayed(new a(), 1500L);
return;
}
super.cancel();
}
}