PullToRefreshWebView$InternalWebViewSDK9.smali
.class final Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;
.super Landroid/webkit/WebView;
.source "PullToRefreshWebView.java"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x9
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "InternalWebViewSDK9"
.end annotation
# static fields
.field static final OVERSCROLL_FUZZY_THRESHOLD:I = 0x2
.field static final OVERSCROLL_SCALE_FACTOR:F = 1.5f
# instance fields
.field final synthetic this$0:Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;
# direct methods
.method public constructor <init>(Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
.prologue
.line 142
iput-object p1, p0, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->this$0:Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;
.line 143
invoke-direct {p0, p2, p3}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 144
return-void
.end method
.method private getScrollRange()I
.registers 5
.prologue
.line 161
const/4 v1, 0x0
iget-object v0, p0, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->this$0:Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;
iget-object v0, v0, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;->mRefreshableView:Landroid/view/View;
check-cast v0, Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->getContentHeight()I
move-result v0
int-to-float v2, v0
iget-object v0, p0, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->this$0:Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;
iget-object v0, v0, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;->mRefreshableView:Landroid/view/View;
check-cast v0, Landroid/webkit/WebView;
invoke-virtual {v0}, Landroid/webkit/WebView;->getScale()F
move-result v0
mul-float/2addr v0, v2
invoke-static {v0}, Landroid/util/FloatMath;->floor(F)F
move-result v0
invoke-virtual {p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->getHeight()I
move-result v2
invoke-virtual {p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->getPaddingBottom()I
move-result v3
sub-int/2addr v2, v3
invoke-virtual {p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->getPaddingTop()I
move-result v3
sub-int/2addr v2, v3
int-to-float v2, v2
sub-float/2addr v0, v2
invoke-static {v1, v0}, Ljava/lang/Math;->max(FF)F
move-result v0
float-to-int v0, v0
return v0
.end method
# virtual methods
.method protected overScrollBy(IIIIIIIIZ)Z
.registers 20
.prologue
.line 150
invoke-super/range {p0 .. p9}, Landroid/webkit/WebView;->overScrollBy(IIIIIIIIZ)Z
move-result v9
.line 154
iget-object v0, p0, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->this$0:Lcom/handmark/pulltorefresh/library/PullToRefreshWebView;
invoke-direct {p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshWebView$InternalWebViewSDK9;->getScrollRange()I
move-result v5
const/4 v6, 0x2
const/high16 v7, 0x3fc00000 # 1.5f
move v1, p1
move v2, p3
move v3, p2
move v4, p4
move/from16 v8, p9
invoke-static/range {v0 .. v8}, Lcom/handmark/pulltorefresh/library/OverscrollHelper;->overScrollBy(Lcom/handmark/pulltorefresh/library/PullToRefreshBase;IIIIIIFZ)V
.line 157
return v9
.end method