导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - PullToRefreshWebView2.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 PullToRefreshWebView2.java JAVA 源代码文件

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


package com.handmark.pulltorefresh.library.extras;

import android.content.Context;
import android.util.AttributeSet;
import android.webkit.WebView;
import com.handmark.pulltorefresh.library.PullToRefreshWebView;
import java.util.concurrent.atomic.AtomicBoolean;

public class PullToRefreshWebView2 extends PullToRefreshWebView {
    private a B;
    private final AtomicBoolean C;
    private final AtomicBoolean G;

    final class a {
        a(PullToRefreshWebView2 pullToRefreshWebView2) {
        }
    }

    public PullToRefreshWebView2(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.C = new AtomicBoolean(false);
        this.G = new AtomicBoolean(false);
    }

    @Override
    public WebView i(Context context, AttributeSet attributeSet) {
        WebView i = super.i(context, attributeSet);
        a aVar = new a(this);
        this.B = aVar;
        i.addJavascriptInterface(aVar, "ptr");
        return i;
    }

    @Override
    protected boolean q() {
        getRefreshableView().loadUrl("javascript:isReadyForPullUp();");
        return this.G.get();
    }

    @Override
    protected boolean r() {
        getRefreshableView().loadUrl("javascript:isReadyForPullDown();");
        return this.C.get();
    }
}