Play House Simulation v3.0版本的 MD5 值为:4dbd745af43e6bcde3a0dca90b9e5934

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


package OooO0OO.OooO00o.OooO00o;

import OooO0OO.OooO00o.OooO00o.o00O00;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Build;
import android.view.View;
import android.webkit.URLUtil;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ProgressBar;
import com.adfly.sdk.n2;
import java.lang.ref.WeakReference;
import java.util.regex.Pattern;

public class o00O00o0 extends o00O00 {

    public final n2 f509OooO0o;

    public o00O00o0(n2 n2Var, Context context, o00O00.OooO00o oooO00o) {
        super(context);
        this.f509OooO0o = n2Var;
    }

    @Override
    public void onLoadResource(WebView webView, String str) {
        WebViewClient webViewClient;
        super.onLoadResource(webView, str);
        String str2 = n2.OooOo0o;
        String str3 = n2.OooOo0o;
        n2 n2Var = this.f509OooO0o;
        if (n2Var.OooOO0O || (webViewClient = n2Var.OooOOOo) == null) {
            return;
        }
        webViewClient.onLoadResource(webView, str);
    }

    @Override
    public void onPageCommitVisible(WebView webView, String str) {
        n2.OooO0o oooO0o;
        WebViewClient webViewClient;
        super.onPageCommitVisible(webView, str);
        n2 n2Var = this.f509OooO0o;
        if (!n2Var.OooOO0O && (webViewClient = n2Var.OooOOOo) != null && Build.VERSION.SDK_INT >= 23) {
            webViewClient.onPageCommitVisible(webView, str);
        }
        n2 n2Var2 = this.f509OooO0o;
        if (!n2Var2.OooOO0O) {
            boolean OooO0O02 = o000O00.OooO0O0(str, n2Var2.f2441OooO0o0);
            n2 n2Var3 = this.f509OooO0o;
            if (!n2Var3.f2444OooOO0 && (oooO0o = n2Var3.f2435OooO) != null) {
                oooO0o.OooO0O0(OooO0O02);
            }
            this.f509OooO0o.f2444OooOO0 = true;
        }
        String str2 = n2.OooOo0o;
        String str3 = n2.OooOo0o;
    }

    @Override
    public void onPageFinished(WebView webView, String str) {
        WebViewClient webViewClient;
        super.onPageFinished(webView, str);
        String str2 = n2.OooOo0o;
        String str3 = n2.OooOo0o;
        n2 n2Var = this.f509OooO0o;
        if (!n2Var.OooOO0O && (webViewClient = n2Var.OooOOOo) != null) {
            webViewClient.onPageFinished(webView, str);
        }
        n2 n2Var2 = this.f509OooO0o;
        if (n2Var2.OooOO0O) {
            return;
        }
        n2Var2.OooOO0o = false;
        boolean OooO0O02 = o000O00.OooO0O0(str, n2Var2.f2441OooO0o0);
        n2.OooO0o oooO0o = this.f509OooO0o.f2435OooO;
        if (oooO0o != null) {
            oooO0o.a(OooO0O02);
        }
        if (OooO0O02) {
            this.f509OooO0o.OooOOO0 = true;
        }
        n2 n2Var3 = this.f509OooO0o;
        boolean z = n2Var3.OooOO0o;
        ProgressBar progressBar = n2Var3.f2438OooO0OO;
        if (progressBar != null) {
            progressBar.setVisibility(8);
        }
    }

    @Override
    public void onPageStarted(WebView webView, String str, Bitmap bitmap) {
        WebViewClient webViewClient;
        super.onPageStarted(webView, str, bitmap);
        String str2 = n2.OooOo0o;
        String str3 = n2.OooOo0o;
        n2 n2Var = this.f509OooO0o;
        if (!n2Var.OooOO0O && (webViewClient = n2Var.OooOOOo) != null) {
            webViewClient.onPageStarted(webView, str, bitmap);
        }
        n2 n2Var2 = this.f509OooO0o;
        if (n2Var2.OooOO0O) {
            return;
        }
        n2Var2.f2443OooO0oo = str;
        n2Var2.f2442OooO0oO = null;
        View view = n2Var2.f2437OooO0O0;
        if (view != null) {
            view.setVisibility(8);
        }
        ProgressBar progressBar = this.f509OooO0o.f2438OooO0OO;
        if (progressBar != null) {
            progressBar.setVisibility(0);
        }
        webView.setVisibility(0);
        n2 n2Var3 = this.f509OooO0o;
        n2Var3.f2444OooOO0 = false;
        n2Var3.OooOO0o = true;
        boolean OooO0O02 = o000O00.OooO0O0(str, n2Var3.f2441OooO0o0);
        n2.OooO0o oooO0o = this.f509OooO0o.f2435OooO;
        if (oooO0o != null) {
            oooO0o.OooO0Oo(OooO0O02);
        }
    }

    @Override
    public void onReceivedError(WebView webView, int i, String str, String str2) {
        WebViewClient webViewClient;
        super.onReceivedError(webView, i, str, str2);
        n2 n2Var = this.f509OooO0o;
        if (!n2Var.OooOO0O && (webViewClient = n2Var.OooOOOo) != null) {
            webViewClient.onReceivedError(webView, i, str, str2);
        }
        n2 n2Var2 = this.f509OooO0o;
        if (n2Var2.OooOO0O || str2 == null) {
            return;
        }
        if (n2Var2.f2435OooO != null) {
            this.f509OooO0o.f2435OooO.OooO0OO(o000O00.OooO0O0(str2, n2Var2.f2441OooO0o0), i, str, str2);
        }
        n2 n2Var3 = this.f509OooO0o;
        n2Var3.f2442OooO0oO = str2;
        View view = n2Var3.f2437OooO0O0;
        if (view != null) {
            view.setVisibility(0);
        }
        ProgressBar progressBar = this.f509OooO0o.f2438OooO0OO;
        if (progressBar != null) {
            progressBar.setVisibility(8);
        }
        webView.loadUrl("javascript:document.body.innerHTML=''");
        webView.setVisibility(8);
    }

    @Override
    public void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
        WebViewClient webViewClient;
        super.onReceivedHttpError(webView, webResourceRequest, webResourceResponse);
        n2 n2Var = this.f509OooO0o;
        if (n2Var.OooOO0O || (webViewClient = n2Var.OooOOOo) == null || Build.VERSION.SDK_INT < 23) {
            return;
        }
        webViewClient.onReceivedHttpError(webView, webResourceRequest, webResourceResponse);
    }

    @Override
    @TargetApi(21)
    public WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
        WebViewClient webViewClient;
        WebResourceResponse shouldInterceptRequest;
        n2 n2Var = this.f509OooO0o;
        return (n2Var.OooOO0O || (webViewClient = n2Var.OooOOOo) == null || (shouldInterceptRequest = webViewClient.shouldInterceptRequest(webView, webResourceRequest)) == null) ? super.shouldInterceptRequest(webView, webResourceRequest) : shouldInterceptRequest;
    }

    @Override
    public boolean shouldOverrideUrlLoading(WebView webView, String str) {
        n2.OooO0o oooO0o;
        WebViewClient webViewClient;
        n2 n2Var = this.f509OooO0o;
        if (!n2Var.OooOO0O && (webViewClient = n2Var.OooOOOo) != null && webViewClient.shouldOverrideUrlLoading(webView, str)) {
            return true;
        }
        n2.OooO0o oooO0o2 = this.f509OooO0o.f2435OooO;
        if (oooO0o2 != null && oooO0o2.OooO00o(webView, str)) {
            return true;
        }
        if (Pattern.compile("^market://details?\\S+$").matcher(str).find()) {
            WeakReference<Activity> weakReference = this.f509OooO0o.f2436OooO00o;
            o0OOO0o.OooOo00(weakReference != null ? weakReference.get() : null, "com.android.vending", str);
            n2.OooO0o oooO0o3 = this.f509OooO0o.f2435OooO;
            if (oooO0o3 != null) {
                oooO0o3.b();
            }
            return true;
        }
        boolean shouldOverrideUrlLoading = super.shouldOverrideUrlLoading(webView, str);
        if (shouldOverrideUrlLoading) {
            n2 n2Var2 = this.f509OooO0o;
            if (!n2Var2.OooOOO0 && (oooO0o = n2Var2.f2435OooO) != null) {
                oooO0o.a();
            }
        }
        if (URLUtil.isNetworkUrl(str)) {
            return shouldOverrideUrlLoading;
        }
        return true;
    }

    @Override
    public WebResourceResponse shouldInterceptRequest(WebView webView, String str) {
        WebViewClient webViewClient;
        WebResourceResponse shouldInterceptRequest;
        n2 n2Var = this.f509OooO0o;
        return (n2Var.OooOO0O || (webViewClient = n2Var.OooOOOo) == null || (shouldInterceptRequest = webViewClient.shouldInterceptRequest(webView, str)) == null) ? super.shouldInterceptRequest(webView, str) : shouldInterceptRequest;
    }

    @Override
    @TargetApi(23)
    public void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {
        WebViewClient webViewClient;
        super.onReceivedError(webView, webResourceRequest, webResourceError);
        String str = n2.OooOo0o;
        String str2 = n2.OooOo0o;
        StringBuilder OooOOo0 = OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooOOo0("onReceivedError:");
        OooOOo0.append(webResourceError.getErrorCode());
        OooOOo0.append(" description:");
        OooOOo0.append((Object) webResourceError.getDescription());
        OooOOo0.toString();
        n2 n2Var = this.f509OooO0o;
        if (!n2Var.OooOO0O && (webViewClient = n2Var.OooOOOo) != null) {
            webViewClient.onReceivedError(webView, webResourceRequest, webResourceError);
        }
        String uri = webResourceRequest.getUrl().toString();
        n2 n2Var2 = this.f509OooO0o;
        if (n2Var2.OooOO0O || !o000O00.OooO0O0(uri, n2Var2.f2443OooO0oo)) {
            return;
        }
        boolean OooO0O02 = o000O00.OooO0O0(uri, this.f509OooO0o.f2441OooO0o0);
        n2.OooO0o oooO0o = this.f509OooO0o.f2435OooO;
        if (oooO0o != null) {
            oooO0o.OooO0OO(OooO0O02, webResourceError.getErrorCode(), webResourceError.getDescription().toString(), uri);
        }
        n2 n2Var3 = this.f509OooO0o;
        n2Var3.f2442OooO0oO = uri;
        View view = n2Var3.f2437OooO0O0;
        if (view != null) {
            view.setVisibility(0);
        }
        ProgressBar progressBar = this.f509OooO0o.f2438OooO0OO;
        if (progressBar != null) {
            progressBar.setVisibility(8);
        }
        webView.loadUrl("javascript:document.body.innerHTML=''");
        webView.setVisibility(8);
    }
}