导航菜单

页面标题

页面副标题

Kaspi.kz v5.85.1 - getSplashScreen.java 源代码

正在查看: Kaspi.kz v5.85.1 应用的 getSplashScreen.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package o;

import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.webkit.ConsoleMessage;
import android.webkit.GeolocationPermissions;
import android.webkit.HttpAuthHandler;
import android.webkit.JsResult;
import android.webkit.SslErrorHandler;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kz.kaspi.mobile.core.SingleActivity;
import o.lambdaonFrameResolutionChanged0;
import o.setStatement;
import o.unregisterActivityLifecycleCallbacks;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.json.JSONObject;

public final class getSplashScreen extends FrameLayout {
    private static final String setBackground = "x-ignore-error";
    public static final int setError = 10;
    public static final setBackground setFieldValue = new setBackground(null);
    public static final int setLabel = 100;
    private static final String setOptions = "KASPI_APP_DELEGATE";
    private final Command AudioAttributesCompatParcelizer;
    private setTime AudioAttributesImplApi21Parcelizer;
    private int AudioAttributesImplApi26Parcelizer;
    private setTime AudioAttributesImplBaseParcelizer;
    private getCurrentFocus IconCompatParcelizer;
    private registerComponentCallbacks MediaBrowserCompatCustomActionResultReceiver;
    private setLocusContext MediaBrowserCompatItemReceiver;
    private WebView MediaBrowserCompatMediaItem;
    private setElement MediaBrowserCompatSearchResultReceiver;
    private FrameLayout MediaDescriptionCompat;
    private emitState MediaMetadataCompat;
    private boolean RemoteActionCompatParcelizer;
    private WebChromeClient.CustomViewCallback read;
    private setOutputSampleRate setElement;
    private boolean write;

    public static final String setBackground(String str) {
        return str;
    }

    public static final class setBackground {
        public setBackground(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private setBackground() {
        }
    }

    public getSplashScreen(@NotNull Context context) {
        super(context);
        Intrinsics.checkNotNullParameter(context, "");
        this.AudioAttributesCompatParcelizer = getHelp.setFieldValue(this);
        this.MediaBrowserCompatItemReceiver = setLocusContext.setBackground;
        setViewPadding setviewpadding = setViewPadding.setLabel;
        this.AudioAttributesImplBaseParcelizer = setviewpadding;
        this.AudioAttributesImplApi21Parcelizer = setviewpadding;
        this.MediaBrowserCompatSearchResultReceiver = new setElement();
        MediaBrowserCompatCustomActionResultReceiver();
    }

    public getSplashScreen(@NotNull Context context, @NotNull AttributeSet attributeSet) {
        super(context, attributeSet);
        Intrinsics.checkNotNullParameter(context, "");
        Intrinsics.checkNotNullParameter(attributeSet, "");
        this.AudioAttributesCompatParcelizer = getHelp.setFieldValue(this);
        this.MediaBrowserCompatItemReceiver = setLocusContext.setBackground;
        setViewPadding setviewpadding = setViewPadding.setLabel;
        this.AudioAttributesImplBaseParcelizer = setviewpadding;
        this.AudioAttributesImplApi21Parcelizer = setviewpadding;
        this.MediaBrowserCompatSearchResultReceiver = new setElement();
        MediaBrowserCompatCustomActionResultReceiver();
    }

    public getSplashScreen(@NotNull Context context, @NotNull AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        Intrinsics.checkNotNullParameter(context, "");
        Intrinsics.checkNotNullParameter(attributeSet, "");
        this.AudioAttributesCompatParcelizer = getHelp.setFieldValue(this);
        this.MediaBrowserCompatItemReceiver = setLocusContext.setBackground;
        setViewPadding setviewpadding = setViewPadding.setLabel;
        this.AudioAttributesImplBaseParcelizer = setviewpadding;
        this.AudioAttributesImplApi21Parcelizer = setviewpadding;
        this.MediaBrowserCompatSearchResultReceiver = new setElement();
        MediaBrowserCompatCustomActionResultReceiver();
    }

    public final boolean MediaBrowserCompatItemReceiver() {
        JSONObject error = postOrRun.setFieldValue().RemoteActionCompatParcelizer().setError(SingleActivity.AudioAttributesImplBaseParcelizer);
        if (error == null || !error.optBoolean("isWebErrorReceivedFlagEnabled")) {
            return false;
        }
        return this.RemoteActionCompatParcelizer;
    }

    private final void MediaBrowserCompatCustomActionResultReceiver() {
        setOutputSampleRate actor;
        WebSettings settings;
        if (this.MediaBrowserCompatMediaItem != null) {
            return;
        }
        try {
            Context context = getContext();
            Intrinsics.checkNotNullExpressionValue(context, "");
            getAudioManager options = callFailure.setOptions(context);
            if (options == null || (actor = options.getActor()) == null) {
                throw new Exception("Could not cast WebPageView`s context to BaseActivity");
            }
            this.setElement = actor;
            WebView webView = new WebView(getContext());
            this.MediaBrowserCompatMediaItem = webView;
            addView(webView);
            WebView webView2 = this.MediaBrowserCompatMediaItem;
            if (webView2 != null && (settings = webView2.getSettings()) != null) {
                settings.setLoadWithOverviewMode(true);
                settings.setUseWideViewPort(true);
                settings.setBuiltInZoomControls(true);
                settings.setDisplayZoomControls(false);
                settings.setJavaScriptEnabled(true);
                settings.setDomStorageEnabled(true);
            }
            FrameLayout frameLayout = new FrameLayout(getContext());
            this.MediaDescriptionCompat = frameLayout;
            addView(frameLayout);
            FrameLayout frameLayout2 = this.MediaDescriptionCompat;
            if (frameLayout2 == null) {
                Intrinsics.read("");
                frameLayout2 = null;
            }
            frameLayout2.setVisibility(4);
            WebView webView3 = this.MediaBrowserCompatMediaItem;
            if (webView3 != null) {
                webView3.setWebViewClient(new setOptions());
            }
            WebView webView4 = this.MediaBrowserCompatMediaItem;
            if (webView4 != null) {
                webView4.setWebChromeClient(new setLabel());
            }
            AudioAttributesCompatParcelizer();
        } catch (Throwable th) {
            this.MediaBrowserCompatMediaItem = null;
            removeAllViews();
            this.AudioAttributesImplBaseParcelizer.setLabel();
            this.AudioAttributesImplApi21Parcelizer.setLabel();
            setOptions(setLocusContext.setFieldValue, new setLocusContext[0]);
            setStatement.setLabel.setOptions(this.AudioAttributesCompatParcelizer, new Exception("RuntimeException while creating WebView", th), null, 2, null);
        }
    }

    public final void setDelegate(@NotNull getCurrentFocus getcurrentfocus) {
        Intrinsics.checkNotNullParameter(getcurrentfocus, "");
        if (this.MediaBrowserCompatItemReceiver == setLocusContext.setFieldValue) {
            getcurrentfocus.bt_();
        }
        this.IconCompatParcelizer = getcurrentfocus;
    }

    public final void setJavascriptDelegate(@NotNull registerComponentCallbacks registercomponentcallbacks) {
        Intrinsics.checkNotNullParameter(registercomponentcallbacks, "");
        this.MediaBrowserCompatCustomActionResultReceiver = registercomponentcallbacks;
    }

    public final void setAllowFileAccess() {
        WebSettings settings;
        WebSettings settings2;
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null && (settings2 = webView.getSettings()) != null) {
            settings2.setAllowFileAccess(true);
        }
        WebView webView2 = this.MediaBrowserCompatMediaItem;
        if (webView2 == null || (settings = webView2.getSettings()) == null) {
            return;
        }
        settings.setAllowContentAccess(true);
    }

    public final void AudioAttributesCompatParcelizer() {
        final String string = getContext().getString(lambdaonFrameResolutionChanged0.write.ExtraSupportedQualityQuirk);
        Intrinsics.checkNotNullExpressionValue(string, "");
        setOutputSampleRate setoutputsamplerate = this.setElement;
        if (setoutputsamplerate == null) {
            Intrinsics.read("");
            setoutputsamplerate = null;
        }
        setoutputsamplerate.setBackground(new Function0() {
            public final Object invoke() {
                Unit element;
                element = getSplashScreen.setElement(getSplashScreen.this, string);
                return element;
            }
        });
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.onResume();
        }
    }

    public static final Unit setElement(getSplashScreen getsplashscreen, String str) {
        WebView webView = getsplashscreen.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.evaluateJavascript(str, null);
        }
        return Unit.INSTANCE;
    }

    public final void AudioAttributesImplBaseParcelizer() {
        final String string = getContext().getString(lambdaonFrameResolutionChanged0.write.EncoderNotUsePersistentInputSurfaceQuirk);
        Intrinsics.checkNotNullExpressionValue(string, "");
        setOutputSampleRate setoutputsamplerate = this.setElement;
        if (setoutputsamplerate == null) {
            Intrinsics.read("");
            setoutputsamplerate = null;
        }
        setoutputsamplerate.setBackground(new Function0() {
            public final Object invoke() {
                Unit label;
                label = getSplashScreen.setLabel(getSplashScreen.this, string);
                return label;
            }
        });
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.onPause();
        }
    }

    public static final Unit setLabel(getSplashScreen getsplashscreen, String str) {
        WebView webView = getsplashscreen.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.evaluateJavascript(str, null);
        }
        return Unit.INSTANCE;
    }

    public final void setBackground() {
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            removeView(webView);
            webView.destroy();
            this.MediaBrowserCompatMediaItem = null;
            this.IconCompatParcelizer = null;
            this.MediaBrowserCompatCustomActionResultReceiver = null;
        }
    }

    public final void setError(@Nullable emitState emitstate) {
        if (emitstate != null) {
            AudioAttributesImplApi21Parcelizer();
            this.MediaMetadataCompat = emitstate;
            MediaBrowserCompatCustomActionResultReceiver();
            this.AudioAttributesImplApi21Parcelizer.setLabel();
            this.AudioAttributesImplBaseParcelizer.setLabel();
            setOptions(setLocusContext.setBackground, new setLocusContext[0]);
            getCurrentFocus getcurrentfocus = this.IconCompatParcelizer;
            if (getcurrentfocus != null) {
                getcurrentfocus.setError(emitstate);
            }
            unregisterActivityLifecycleCallbacks unregisteractivitylifecyclecallbacks = unregisterActivityLifecycleCallbacks.setError;
            setOutputSampleRate setoutputsamplerate = this.setElement;
            if (setoutputsamplerate == null) {
                Intrinsics.read("");
                setoutputsamplerate = null;
            }
            this.AudioAttributesImplApi21Parcelizer = unregisteractivitylifecyclecallbacks.setBackground(setoutputsamplerate, this.MediaBrowserCompatSearchResultReceiver, emitstate.toString());
            WebView webView = this.MediaBrowserCompatMediaItem;
            if (webView != null) {
                webView.loadUrl(emitstate.toString());
            }
        }
    }

    public final void setFieldValue(@NotNull String str, @NotNull String str2, @NotNull String str3) {
        Intrinsics.checkNotNullParameter(str, "");
        Intrinsics.checkNotNullParameter(str2, "");
        Intrinsics.checkNotNullParameter(str3, "");
        MediaBrowserCompatCustomActionResultReceiver();
        this.AudioAttributesImplApi21Parcelizer.setLabel();
        this.AudioAttributesImplBaseParcelizer.setLabel();
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.loadData(str, str2, str3);
        }
    }

    public final void AudioAttributesImplApi26Parcelizer() {
        AudioAttributesImplApi21Parcelizer();
        WebView webView = this.MediaBrowserCompatMediaItem;
        setOutputSampleRate setoutputsamplerate = null;
        String url = webView != null ? webView.getUrl() : null;
        if (url == null) {
            setError(this.MediaMetadataCompat);
            return;
        }
        getCurrentFocus getcurrentfocus = this.IconCompatParcelizer;
        if (getcurrentfocus != null) {
            getcurrentfocus.setError(emitState.setFieldValue.setBackground(url));
        }
        setOptions(setLocusContext.setBackground, new setLocusContext[0]);
        this.AudioAttributesImplApi21Parcelizer.setLabel();
        this.AudioAttributesImplBaseParcelizer.setLabel();
        WebView webView2 = this.MediaBrowserCompatMediaItem;
        if (webView2 != null) {
            webView2.reload();
        }
        unregisterActivityLifecycleCallbacks unregisteractivitylifecyclecallbacks = unregisterActivityLifecycleCallbacks.setError;
        setOutputSampleRate setoutputsamplerate2 = this.setElement;
        if (setoutputsamplerate2 == null) {
            Intrinsics.read("");
        } else {
            setoutputsamplerate = setoutputsamplerate2;
        }
        this.AudioAttributesImplApi21Parcelizer = unregisteractivitylifecyclecallbacks.setBackground(setoutputsamplerate, this.MediaBrowserCompatSearchResultReceiver, url.toString());
    }

    public final void AudioAttributesImplApi21Parcelizer() {
        this.RemoteActionCompatParcelizer = false;
    }

    public final void setFieldValue() {
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.addJavascriptInterface(new setFieldValue(this), setOptions);
        }
    }

    public final void setOptions(@NotNull Object obj, @NotNull String str) {
        Intrinsics.checkNotNullParameter(obj, "");
        Intrinsics.checkNotNullParameter(str, "");
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.addJavascriptInterface(obj, str);
        }
    }

    public final boolean setOptions() {
        WebView webView = this.MediaBrowserCompatMediaItem;
        return webView != null && webView.canGoBack();
    }

    public final void setElement() {
        WebChromeClient.CustomViewCallback customViewCallback = this.read;
        if (customViewCallback != null) {
            customViewCallback.onCustomViewHidden();
        }
    }

    public final void setLabel(@NotNull Function1<? super Boolean, Unit> function1) {
        Intrinsics.checkNotNullParameter(function1, "");
        String string = getContext().getString(lambdaonFrameResolutionChanged0.write.setDropDownWidth);
        Intrinsics.checkNotNullExpressionValue(string, "");
        setOutputSampleRate setoutputsamplerate = this.setElement;
        if (setoutputsamplerate == null) {
            Intrinsics.read("");
            setoutputsamplerate = null;
        }
        setoutputsamplerate.setBackground(new onTopResumedActivityChanged(this, string, function1));
    }

    public static final Unit setBackground(getSplashScreen getsplashscreen, String str, Function1 function1) {
        WebView webView = getsplashscreen.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.evaluateJavascript(str, new getVoiceInteractor(function1));
        }
        return Unit.INSTANCE;
    }

    public static final void setLabel(Function1 function1, String str) {
        function1.invoke(Boolean.valueOf(Boolean.parseBoolean(str)));
    }

    public final void read() {
        String string = getContext().getString(lambdaonFrameResolutionChanged0.write.ExtraSupportedResolutionQuirk);
        Intrinsics.checkNotNullExpressionValue(string, "");
        setOutputSampleRate setoutputsamplerate = this.setElement;
        if (setoutputsamplerate == null) {
            Intrinsics.read("");
            setoutputsamplerate = null;
        }
        setoutputsamplerate.setBackground(new isVoiceInteraction(this, string));
    }

    public static final Unit setError(getSplashScreen getsplashscreen, String str) {
        WebView webView = getsplashscreen.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.evaluateJavascript(str, null);
        }
        return Unit.INSTANCE;
    }

    public final void IconCompatParcelizer() {
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.goBack();
        }
    }

    public final void setError() {
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.clearHistory();
        }
    }

    public final boolean RemoteActionCompatParcelizer() {
        return this.read != null;
    }

    public final emitState write() {
        String url;
        emitState background;
        WebView webView = this.MediaBrowserCompatMediaItem;
        return (webView == null || (url = webView.getUrl()) == null || (background = emitState.setFieldValue.setBackground(url)) == null) ? this.MediaMetadataCompat : background;
    }

    public final void setLabel(@NotNull String str, @Nullable ValueCallback<String> valueCallback) {
        Intrinsics.checkNotNullParameter(str, "");
        new Command("JS_EVALUATE").setError(new onPostCreate(str));
        setOutputSampleRate setoutputsamplerate = this.setElement;
        if (setoutputsamplerate == null) {
            Intrinsics.read("");
            setoutputsamplerate = null;
        }
        setoutputsamplerate.setBackground(new onPostResume(this, str, valueCallback));
    }

    public static final Unit setOptions(getSplashScreen getsplashscreen, String str, ValueCallback valueCallback) {
        WebView webView = getsplashscreen.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.evaluateJavascript(str, valueCallback);
        }
        return Unit.INSTANCE;
    }

    public final void setLabel() {
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.setHorizontalScrollBarEnabled(false);
        }
        WebView webView2 = this.MediaBrowserCompatMediaItem;
        if (webView2 != null) {
            webView2.setVerticalScrollBarEnabled(false);
        }
        WebView webView3 = this.MediaBrowserCompatMediaItem;
        if (webView3 != null) {
            webView3.setOnTouchListener(new onRestart());
        }
    }

    public static final boolean setFieldValue(View view, MotionEvent motionEvent) {
        return motionEvent.getAction() == 2;
    }

    public final void setBackground(@NotNull Bundle bundle) {
        Intrinsics.checkNotNullParameter(bundle, "");
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.saveState(bundle);
        }
    }

    public final void setFieldValue(@NotNull Bundle bundle) {
        Intrinsics.checkNotNullParameter(bundle, "");
        WebView webView = this.MediaBrowserCompatMediaItem;
        if (webView != null) {
            webView.restoreState(bundle);
        }
    }

    public final void setIgnoreWebErrorFlag(@Nullable Boolean bool) {
        if (bool != null) {
            this.write = bool.booleanValue();
        }
    }

    public final boolean setOptions(setLocusContext setlocuscontext, setLocusContext... setlocuscontextArr) {
        setLocusContext setlocuscontext2 = this.MediaBrowserCompatItemReceiver;
        if (setlocuscontext2 != setlocuscontext) {
            if (setlocuscontextArr.length == 0 || NullValue.setLabel(setlocuscontextArr, setlocuscontext2)) {
                setStatement.setLabel.setFieldValue(this.AudioAttributesCompatParcelizer, "setStatus: " + this.MediaBrowserCompatItemReceiver + " -> " + setlocuscontext, null, 2, null);
                this.MediaBrowserCompatItemReceiver = setlocuscontext;
                return true;
            }
            setStatement.setLabel.setBackground(this.AudioAttributesCompatParcelizer, "setStatus failed: " + this.MediaBrowserCompatItemReceiver + " -> " + setlocuscontext, null, 2, null);
        }
        return false;
    }

    public final void setOptions(boolean z) {
        this.AudioAttributesImplBaseParcelizer.setLabel();
        this.AudioAttributesImplApi21Parcelizer.setLabel();
        if (setOptions(setLocusContext.setError, setLocusContext.setBackground)) {
            if (z) {
                getCurrentFocus getcurrentfocus = this.IconCompatParcelizer;
                if (getcurrentfocus != null) {
                    getcurrentfocus.AudioAttributesImplBaseParcelizer();
                    return;
                }
                return;
            }
            getCurrentFocus getcurrentfocus2 = this.IconCompatParcelizer;
            if (getcurrentfocus2 != null) {
                getcurrentfocus2.read();
            }
        }
    }

    final class setElement implements unregisterActivityLifecycleCallbacks.setError {
        public setElement() {
        }

        @Override
        public setLocusContext setOptions() {
            return getSplashScreen.this.MediaBrowserCompatItemReceiver;
        }

        @Override
        public int setError() {
            return getSplashScreen.this.AudioAttributesImplApi26Parcelizer;
        }

        @Override
        public void setLabel() {
            getSplashScreen.this.setOptions(false);
        }
    }

    final class setOptions extends WebViewClient {
        public setOptions() {
        }

        @Override
        public void onPageStarted(@Nullable WebView webView, @NotNull String str, @Nullable Bitmap bitmap) {
            Intrinsics.checkNotNullParameter(str, "");
            setOutputSampleRate setoutputsamplerate = null;
            setStatement.setLabel.setFieldValue(getSplashScreen.this.AudioAttributesCompatParcelizer, "onPageStarted: url=" + str, null, 2, null);
            if (getSplashScreen.this.MediaBrowserCompatItemReceiver()) {
                return;
            }
            getSplashScreen.this.AudioAttributesImplApi26Parcelizer = 10;
            getSplashScreen.this.AudioAttributesImplBaseParcelizer.setLabel();
            getSplashScreen getsplashscreen = getSplashScreen.this;
            setOutputSampleRate setoutputsamplerate2 = getsplashscreen.setElement;
            if (setoutputsamplerate2 == null) {
                Intrinsics.read("");
            } else {
                setoutputsamplerate = setoutputsamplerate2;
            }
            getsplashscreen.AudioAttributesImplBaseParcelizer = setoutputsamplerate.setLabel(getSplashScreen.this.getContext().getResources().getInteger(lambdaonFrameResolutionChanged0.setElement.MediaBrowserCompatItemReceiver), new setError(getSplashScreen.this));
            getSplashScreen.this.setOptions(setLocusContext.setBackground, new setLocusContext[0]);
            getCurrentFocus getcurrentfocus = getSplashScreen.this.IconCompatParcelizer;
            if (getcurrentfocus != null) {
                getcurrentfocus.setError(emitState.setFieldValue.setBackground(str));
            }
        }

        @Override
        public boolean shouldOverrideUrlLoading(@Nullable WebView webView, @NotNull String str) {
            Intrinsics.checkNotNullParameter(str, "");
            setOutputSampleRate setoutputsamplerate = null;
            setStatement.setLabel.setFieldValue(getSplashScreen.this.AudioAttributesCompatParcelizer, "shouldOverrideUrlLoading: url=" + str, null, 2, null);
            getSplashScreen.this.AudioAttributesImplApi21Parcelizer.setLabel();
            getSplashScreen.this.AudioAttributesImplBaseParcelizer.setLabel();
            getSplashScreen.this.setOptions(setLocusContext.setBackground, new setLocusContext[0]);
            getCurrentFocus getcurrentfocus = getSplashScreen.this.IconCompatParcelizer;
            if (getcurrentfocus == null) {
                return false;
            }
            setOutputSampleRate setoutputsamplerate2 = getSplashScreen.this.setElement;
            if (setoutputsamplerate2 == null) {
                Intrinsics.read("");
            } else {
                setoutputsamplerate = setoutputsamplerate2;
            }
            return getcurrentfocus.setBackground(setoutputsamplerate, emitState.setFieldValue.setBackground(str));
        }

        @Override
        public void onPageFinished(@Nullable WebView webView, @Nullable String str) {
            getCurrentFocus getcurrentfocus;
            getCurrentFocus getcurrentfocus2;
            setStatement.setLabel.setFieldValue(getSplashScreen.this.AudioAttributesCompatParcelizer, "onPageFinished: url=" + str + ", isErrorReceived: " + getSplashScreen.this.MediaBrowserCompatItemReceiver(), null, 2, null);
            getSplashScreen.this.AudioAttributesImplBaseParcelizer.setLabel();
            getSplashScreen.this.AudioAttributesImplApi21Parcelizer.setLabel();
            if (getSplashScreen.this.MediaBrowserCompatItemReceiver()) {
                return;
            }
            getSplashScreen getsplashscreen = getSplashScreen.this;
            setLocusContext setlocuscontext = setLocusContext.setLabel;
            if (getsplashscreen.setOptions(setlocuscontext, setLocusContext.setBackground) && (getcurrentfocus2 = getSplashScreen.this.IconCompatParcelizer) != null) {
                getcurrentfocus2.RemoteActionCompatParcelizer();
            }
            if (!getSplashScreen.this.setOptions(setLocusContext.setOptions, setlocuscontext) || (getcurrentfocus = getSplashScreen.this.IconCompatParcelizer) == null) {
                return;
            }
            getcurrentfocus.AudioAttributesImplApi21Parcelizer();
        }

        @Override
        public void onReceivedError(@Nullable WebView webView, int i, @Nullable String str, @Nullable String str2) {
            setStatement.setLabel.setOptions(getSplashScreen.this.AudioAttributesCompatParcelizer, new Exception("onReceivedError: url=" + str2 + ", status=" + i + ", description=" + str + ", networksState =" + isNoiseSuppressorExcludedByUUID.setLabel().setLabel().setBackground()), null, 2, null);
            getSplashScreen.this.setOptions(isNoiseSuppressorExcludedByUUID.setLabel().setLabel().setBackground());
        }

        @Override
        public void onReceivedError(@Nullable WebView webView, @Nullable WebResourceRequest webResourceRequest, @Nullable WebResourceError webResourceError) {
            Command command = getSplashScreen.this.AudioAttributesCompatParcelizer;
            Uri url = webResourceRequest != null ? webResourceRequest.getUrl() : null;
            Integer valueOf = webResourceError != null ? Integer.valueOf(webResourceError.getErrorCode()) : null;
            CharSequence description = webResourceError != null ? webResourceError.getDescription() : null;
            setStatement.setLabel.setOptions(command, new Exception("onReceivedError (>= 23 API): url=" + url + ", status=" + valueOf + ", description=" + ((Object) description) + ", networksState =" + isNoiseSuppressorExcludedByUUID.setLabel().setLabel().setBackground()), null, 2, null);
            if (webResourceRequest == null || !webResourceRequest.isForMainFrame()) {
                return;
            }
            getSplashScreen.this.setOptions(isNoiseSuppressorExcludedByUUID.setLabel().setLabel().setBackground());
        }

        @Override
        public void onReceivedHttpError(@NotNull WebView webView, @NotNull WebResourceRequest webResourceRequest, @NotNull WebResourceResponse webResourceResponse) {
            Intrinsics.checkNotNullParameter(webView, "");
            Intrinsics.checkNotNullParameter(webResourceRequest, "");
            Intrinsics.checkNotNullParameter(webResourceResponse, "");
            setError(webResourceRequest, webResourceResponse);
        }

        private final void setError(WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
            if (!webResourceRequest.isForMainFrame()) {
                Uri url = webResourceRequest.getUrl();
                emitState emitstate = getSplashScreen.this.MediaMetadataCompat;
                if (!Intrinsics.setFieldValue(url, emitstate != null ? emitstate.setLabel() : null)) {
                    return;
                }
            }
            boolean parseBoolean = Boolean.parseBoolean(webResourceResponse.getResponseHeaders().get(getSplashScreen.setBackground));
            setStatement.setLabel.setOptions(getSplashScreen.this.AudioAttributesCompatParcelizer, new Exception("onReceivedHttpError: ignoreWebErrorFlag=" + getSplashScreen.this.write + ", ignoreWebErrorHeader=" + parseBoolean + ", url=" + webResourceRequest.getUrl() + ",status=" + webResourceResponse.getStatusCode() + ", description=" + webResourceResponse.getReasonPhrase() + ", reason=" + webResourceResponse.getReasonPhrase()), null, 2, null);
            if (getSplashScreen.this.write && parseBoolean) {
                return;
            }
            getSplashScreen.this.RemoteActionCompatParcelizer = true;
            getSplashScreen.this.setOptions(isNoiseSuppressorExcludedByUUID.setLabel().setLabel().setBackground());
        }

        @Override
        public void onReceivedHttpAuthRequest(@Nullable WebView webView, @Nullable HttpAuthHandler httpAuthHandler, @Nullable String str, @Nullable String str2) {
            setStatement.setLabel.setBackground(getSplashScreen.this.AudioAttributesCompatParcelizer, "onReceivedHttpAuthRequest: host=" + str, null, 2, null);
            if (httpAuthHandler != null) {
                httpAuthHandler.cancel();
            }
            getSplashScreen.this.setOptions(true);
        }

        @Override
        public void onReceivedSslError(@Nullable WebView webView, @Nullable SslErrorHandler sslErrorHandler, @Nullable SslError sslError) {
            setStatement.setLabel.setOptions(getSplashScreen.this.AudioAttributesCompatParcelizer, new Exception("WebView SSL error, certificate: " + (sslError != null ? sslError.getCertificate() : null) + ", url=" + (sslError != null ? sslError.getUrl() : null)), null, 2, null);
            if (sslErrorHandler != null) {
                sslErrorHandler.cancel();
            }
            getSplashScreen.this.setOptions(true);
        }
    }

    final class setLabel extends WebChromeClient {
        public setLabel() {
        }

        @Override
        public void onProgressChanged(@Nullable WebView webView, int i) {
            if (getSplashScreen.this.AudioAttributesImplApi26Parcelizer + 1 > i || i >= 100) {
                return;
            }
            getSplashScreen.this.AudioAttributesImplApi26Parcelizer = Math.max(i, 10);
            getCurrentFocus getcurrentfocus = getSplashScreen.this.IconCompatParcelizer;
            if (getcurrentfocus != null) {
                getcurrentfocus.setBackground(getSplashScreen.this.AudioAttributesImplApi26Parcelizer);
            }
        }

        @Override
        public boolean onConsoleMessage(@Nullable ConsoleMessage consoleMessage) {
            ConsoleMessage.MessageLevel messageLevel = consoleMessage != null ? consoleMessage.messageLevel() : null;
            if (messageLevel != null) {
                int i = setLabel.setOptions[messageLevel.ordinal()];
            }
            return super.onConsoleMessage(consoleMessage);
        }

        @Override
        public boolean onJsBeforeUnload(@Nullable WebView webView, @Nullable String str, @Nullable String str2, @Nullable JsResult jsResult) {
            setStatement.setLabel.setFieldValue(getSplashScreen.this.AudioAttributesCompatParcelizer, "onJsBeforeUnload: " + str, null, 2, null);
            if (jsResult == null) {
                return true;
            }
            jsResult.confirm();
            return true;
        }

        @Override
        public boolean onJsConfirm(@Nullable WebView webView, @Nullable String str, @Nullable String str2, @Nullable JsResult jsResult) {
            setStatement.setLabel.setFieldValue(getSplashScreen.this.AudioAttributesCompatParcelizer, "onJsConfirm: " + str, null, 2, null);
            if (jsResult == null) {
                return true;
            }
            jsResult.confirm();
            return true;
        }

        @Override
        public void onShowCustomView(@Nullable View view, @Nullable WebChromeClient.CustomViewCallback customViewCallback) {
            FrameLayout frameLayout = null;
            setStatement.setLabel.setFieldValue(getSplashScreen.this.AudioAttributesCompatParcelizer, "onShowCustomView", null, 2, null);
            getSplashScreen.this.read = customViewCallback;
            FrameLayout frameLayout2 = getSplashScreen.this.MediaDescriptionCompat;
            if (frameLayout2 == null) {
                Intrinsics.read("");
                frameLayout2 = null;
            }
            frameLayout2.addView(view);
            FrameLayout frameLayout3 = getSplashScreen.this.MediaDescriptionCompat;
            if (frameLayout3 == null) {
                Intrinsics.read("");
            } else {
                frameLayout = frameLayout3;
            }
            frameLayout.setVisibility(0);
            WebView webView = getSplashScreen.this.MediaBrowserCompatMediaItem;
            if (webView != null) {
                webView.setVisibility(4);
            }
            getCurrentFocus getcurrentfocus = getSplashScreen.this.IconCompatParcelizer;
            if (getcurrentfocus != null) {
                getcurrentfocus.AudioAttributesCompatParcelizer();
            }
        }

        @Override
        public void onHideCustomView() {
            FrameLayout frameLayout = null;
            setStatement.setLabel.setFieldValue(getSplashScreen.this.AudioAttributesCompatParcelizer, "onHideCustomView", null, 2, null);
            getSplashScreen.this.read = null;
            FrameLayout frameLayout2 = getSplashScreen.this.MediaDescriptionCompat;
            if (frameLayout2 == null) {
                Intrinsics.read("");
                frameLayout2 = null;
            }
            frameLayout2.setVisibility(4);
            FrameLayout frameLayout3 = getSplashScreen.this.MediaDescriptionCompat;
            if (frameLayout3 == null) {
                Intrinsics.read("");
            } else {
                frameLayout = frameLayout3;
            }
            frameLayout.removeAllViews();
            WebView webView = getSplashScreen.this.MediaBrowserCompatMediaItem;
            if (webView != null) {
                webView.setVisibility(0);
            }
            getCurrentFocus getcurrentfocus = getSplashScreen.this.IconCompatParcelizer;
            if (getcurrentfocus != null) {
                getcurrentfocus.MediaBrowserCompatCustomActionResultReceiver();
            }
        }

        @Override
        public void onGeolocationPermissionsShowPrompt(@NotNull String str, @NotNull GeolocationPermissions.Callback callback) {
            Intrinsics.checkNotNullParameter(str, "");
            Intrinsics.checkNotNullParameter(callback, "");
            getCurrentFocus getcurrentfocus = getSplashScreen.this.IconCompatParcelizer;
            if (getcurrentfocus != null) {
                getcurrentfocus.setOptions(str, callback);
            }
        }

        @Override
        public boolean onShowFileChooser(@Nullable WebView webView, @NotNull ValueCallback<Uri[]> valueCallback, @NotNull WebChromeClient.FileChooserParams fileChooserParams) {
            Intrinsics.checkNotNullParameter(valueCallback, "");
            Intrinsics.checkNotNullParameter(fileChooserParams, "");
            getCurrentFocus getcurrentfocus = getSplashScreen.this.IconCompatParcelizer;
            if (getcurrentfocus != null) {
                return getcurrentfocus.setLabel(valueCallback, fileChooserParams);
            }
            return true;
        }
    }

    private final <T> T setLabel(Function0<? extends T> function0) {
        try {
            return (T) function0.invoke();
        } catch (Exception e) {
            setStatement.setLabel.setOptions(getHelp.setFieldValue(this), new Exception("Exception {" + e.getMessage() + "} was thrown on page " + write(), e), null, 2, null);
            return null;
        }
    }
}