导航菜单

页面标题

页面副标题

Handling Master v2 - WindVaneWebView.java 源代码

正在查看: Handling Master v2 应用的 WindVaneWebView.java JAVA 源代码文件

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


package com.thinkup.expressad.atsignalcommon.windvane;

import android.content.Context;
import android.content.IntentFilter;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.MotionEvent;
import com.thinkup.core.common.n.o0n;
import com.thinkup.core.express.web.BaseWebView;
import com.thinkup.expressad.foundation.m0.oom;

public class WindVaneWebView extends BaseWebView {
    protected o0 m;
    private boolean mm;
    private float mn;
    private String mo;
    protected on n;
    private float n0;
    private com.thinkup.expressad.foundation.o0.o0 nm;
    private int nn;
    private String no;
    protected n0 o;
    private Object o0;
    private String om;
    private com.thinkup.core.express.web.n on;
    private Object oo;

    public WindVaneWebView(Context context) {
        super(context);
        this.mm = false;
        this.mn = 0.0f;
        this.n0 = 0.0f;
    }

    public static boolean o(WindVaneWebView windVaneWebView) {
        windVaneWebView.mm = true;
        return true;
    }

    public java.lang.String checkToGetUrl(java.lang.String r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.thinkup.expressad.atsignalcommon.windvane.WindVaneWebView.checkToGetUrl(java.lang.String):java.lang.String");
    }

    public void clearWebView() {
        if (this.mm) {
            return;
        }
        loadUrl(com.thinkup.core.common.res.o0.o);
    }

    public com.thinkup.expressad.foundation.o0.o0 getCampaignEx() {
        return this.nm;
    }

    public String getCampaignId() {
        return this.om;
    }

    public Object getJsObject(String str) {
        on onVar = this.n;
        if (onVar == null) {
            return null;
        }
        return onVar.o(str);
    }

    public String getLocalRequestId() {
        return this.no;
    }

    public Object getMraidObject() {
        return this.oo;
    }

    public Object getObject() {
        return this.o0;
    }

    public String getRid() {
        return this.mo;
    }

    public o0 getSignalCommunication() {
        return this.m;
    }

    public com.thinkup.core.express.web.n getWebViewListener() {
        return this.on;
    }

    public boolean isDestroyed() {
        return this.mm;
    }

    public boolean onTouchEvent(MotionEvent motionEvent) {
        com.thinkup.core.express.web.m mVar = ((BaseWebView) this).mWebViewClient;
        if (mVar != null && (mVar.o() instanceof IntentFilter)) {
            String url = getUrl();
            if (!TextUtils.isEmpty(url) && url.contains("https://play.google.com")) {
                if (motionEvent.getAction() == 0) {
                    this.mn = motionEvent.getRawX();
                    this.n0 = motionEvent.getRawY();
                } else {
                    float rawX = motionEvent.getRawX() - this.mn;
                    float y = motionEvent.getY() - this.n0;
                    if ((rawX >= 0.0f || rawX * (-1.0f) <= 48.0f) && ((rawX <= 0.0f || rawX <= 48.0f) && ((y >= 0.0f || (-1.0f) * y <= 48.0f) && (y <= 0.0f || y <= 48.0f)))) {
                        setClickable(false);
                        return true;
                    }
                }
            }
        }
        return super/*android.webkit.WebView*/.onTouchEvent(motionEvent);
    }

    public void registerWindVanePlugin(Class cls) {
        if (this.n == null) {
            return;
        }
        on.o(cls);
    }

    public void release() {
        try {
            removeAllViews();
            setDownloadListener(null);
            this.o0 = null;
            if (oom.mm(getContext()) != 0) {
                o0n.m().o(new Runnable() {
                    @Override
                    public final void run() {
                        WindVaneWebView.o(WindVaneWebView.this);
                        WindVaneWebView.this.destroy();
                    }
                }, r0 * 1000);
            } else {
                this.mm = true;
                destroy();
            }
        } catch (Throwable th) {
            th.printStackTrace();
        }
    }

    public void setApiManagerContext(Context context) {
        on onVar = this.n;
        if (onVar != null) {
            onVar.o(context);
        }
    }

    public void setApiManagerJSFactory(Object obj) {
        on onVar = this.n;
        if (onVar != null) {
            onVar.o(obj);
        }
    }

    public void setCampaignEx(com.thinkup.expressad.foundation.o0.o0 o0Var) {
        this.nm = o0Var;
    }

    public void setCampaignId(String str) {
        this.om = str;
    }

    public void setLocalRequestId(String str) {
        this.no = str;
    }

    public void setMraidObject(Object obj) {
        this.oo = obj;
    }

    public void setObject(Object obj) {
        this.o0 = obj;
    }

    public void setRid(String str) {
        this.mo = str;
    }

    public void setSignalCommunication(o0 o0Var) {
        this.m = o0Var;
        o0Var.o(this);
    }

    public void setTempTypeForMetrics(int i) {
        this.nn = i;
    }

    public void setWebViewChromeClient(n0 n0Var) {
        this.o = n0Var;
        setWebChromeClient(n0Var);
    }

    public void setWebViewListener(com.thinkup.core.express.web.n nVar) {
        this.on = nVar;
        n0 n0Var = this.o;
        if (n0Var != null) {
            n0Var.o(nVar);
        }
        com.thinkup.core.express.web.m mVar = ((BaseWebView) this).mWebViewClient;
        if (mVar != null) {
            mVar.o(nVar);
        }
    }

    public void setWebViewTransparent() {
        super.setTransparent();
    }

    public final void o() {
        super.o();
        getSettings().setSavePassword(false);
        try {
            getSettings().setUserAgentString(getSettings().getUserAgentString() + " WindVane/3.0.2");
        } catch (Throwable unused) {
            getSettings().setUserAgentString(com.thinkup.core.common.oo0.mn.m0() + " WindVane/3.0.2");
        }
        if (this.o == null) {
            this.o = new n0(this);
        }
        setWebViewChromeClient(this.o);
        com.thinkup.core.express.web.m noVar = new no();
        ((BaseWebView) this).mWebViewClient = noVar;
        setWebViewClient(noVar);
        if (this.m == null) {
            mn mnVar = new mn(((BaseWebView) this).m0);
            this.m = mnVar;
            setSignalCommunication(mnVar);
        }
        this.n = new on(((BaseWebView) this).m0, this);
    }

    public WindVaneWebView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.mm = false;
        this.mn = 0.0f;
        this.n0 = 0.0f;
    }

    public WindVaneWebView(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.mm = false;
        this.mn = 0.0f;
        this.n0 = 0.0f;
    }
}