九游游戏中心HD v4.6.8.1版本的 MD5 值为:78c397802cc5ffdcc7f5502ede90502e

以下内容为反编译后的 c.java 源代码,内容仅作参考


package cn.ninegame.share;

import android.app.Activity;
import android.graphics.Bitmap;
import android.net.http.SslError;
import cn.ninegame.share.a.k;
import cn.ninegame.share.core.ShareParameter;
import cn.ninegame.share.core.m;
import com.uc.webview.export.SslErrorHandler;
import com.uc.webview.export.WebView;
import com.uc.webview.export.WebViewClient;
final class c extends WebViewClient {
    public boolean f3203a;
    final b b;

    public c(b bVar) {
        this.b = bVar;
    }

    @Override
    public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
        String str2;
        boolean z;
        cn.ninegame.share.core.b bVar;
        boolean z2;
        boolean z3;
        cn.ninegame.share.core.b bVar2;
        cn.ninegame.library.b.a aVar;
        ShareParameter shareParameter;
        m mVar;
        m mVar2;
        ShareParameter shareParameter2;
        cn.ninegame.share.core.b bVar3;
        StringBuilder sb = new StringBuilder();
        str2 = this.b.f3202a;
        cn.ninegame.library.stat.b.b.a(sb.append(str2).append("onPageStarted:").append(str).toString(), new Object[0]);
        z = this.b.e;
        if (!z) {
            bVar = this.b.f;
            if ((bVar instanceof k) && str.startsWith("https://api.weibo.com/oauth2/default.html") && !this.f3203a) {
                this.f3203a = true;
                b bVar4 = this.b;
                bVar3 = this.b.f;
                bVar4.e = bVar3.a(str);
            }
            z2 = this.b.e;
            if (z2) {
                mVar = this.b.g;
                if (mVar != null) {
                    mVar2 = this.b.g;
                    shareParameter2 = this.b.h;
                    mVar2.c(shareParameter2);
                }
                webView.stopLoading();
                this.b.setOnDismissListener(null);
                this.b.dismiss();
                return;
            }
            z3 = this.b.e;
            if (!z3 && str.startsWith("https://api.weibo.com/oauth2/default.html")) {
                bVar2 = this.b.f;
                if (bVar2 instanceof k) {
                    this.b.dismiss();
                    try {
                        aVar = this.b.d;
                        shareParameter = this.b.h;
                        new g((Activity) aVar.getContext(), shareParameter).show();
                        return;
                    } catch (Exception e) {
                        return;
                    }
                }
            }
            super.onPageStarted(webView, str, bitmap);
        }
    }

    @Override
    public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
        String str;
        StringBuilder sb = new StringBuilder();
        str = this.b.f3202a;
        cn.ninegame.library.stat.b.b.d(sb.append(str).append("onReceivedSslError .... ").append(sslError.toString()).toString(), new Object[0]);
        sslErrorHandler.proceed();
    }
}