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 = new AtomicBoolean(false); private final AtomicBoolean D = new AtomicBoolean(false); /* access modifiers changed from: package-private */ public final class a { a() { } } public PullToRefreshWebView2(Context context) { super(context); } public PullToRefreshWebView2(Context context, AttributeSet attributeSet) { super(context, attributeSet); } /* access modifiers changed from: protected */ @Override // com.handmark.pulltorefresh.library.PullToRefreshWebView, com.handmark.pulltorefresh.library.PullToRefreshWebView, com.handmark.pulltorefresh.library.PullToRefreshBase public WebView a(Context context, AttributeSet attributeSet) { WebView a2 = super.a(context, attributeSet); this.B = new a(); a2.addJavascriptInterface(this.B, "ptr"); return a2; } /* access modifiers changed from: protected */ @Override // com.handmark.pulltorefresh.library.PullToRefreshWebView, com.handmark.pulltorefresh.library.PullToRefreshBase public boolean d() { ((WebView) getRefreshableView()).loadUrl("javascript:isReadyForPullUp();"); return this.D.get(); } /* access modifiers changed from: protected */ @Override // com.handmark.pulltorefresh.library.PullToRefreshWebView, com.handmark.pulltorefresh.library.PullToRefreshBase public boolean e() { ((WebView) getRefreshableView()).loadUrl("javascript:isReadyForPullDown();"); return this.C.get(); } }