WXScroller$2.smali
.class Lcom/taobao/weex/ui/component/WXScroller$2;
.super Ljava/lang/Object;
.source "WXScroller.java"
# interfaces
.implements Lcom/taobao/weex/ui/view/WXHorizontalScrollView$ScrollViewListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/taobao/weex/ui/component/WXScroller;->addEvent(Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/taobao/weex/ui/component/WXScroller;
# direct methods
.method constructor <init>(Lcom/taobao/weex/ui/component/WXScroller;)V
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x8010
}
names = {
"this$0"
}
.end annotation
.line 213
iput-object p1, p0, Lcom/taobao/weex/ui/component/WXScroller$2;->this$0:Lcom/taobao/weex/ui/component/WXScroller;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onScrollChanged(Lcom/taobao/weex/ui/view/WXHorizontalScrollView;IIII)V
.registers 13
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0,
0x0,
0x0
}
names = {
"scrollView",
"x",
"y",
"oldx",
"oldy"
}
.end annotation
.line 216
iget-object v0, p0, Lcom/taobao/weex/ui/component/WXScroller$2;->this$0:Lcom/taobao/weex/ui/component/WXScroller;
invoke-virtual {v0}, Lcom/taobao/weex/ui/component/WXScroller;->getScrollStartEndHelper()Lcom/taobao/weex/ui/component/helper/ScrollStartEndHelper;
move-result-object v0
invoke-virtual {v0, p2, p3}, Lcom/taobao/weex/ui/component/helper/ScrollStartEndHelper;->onScrolled(II)V
.line 217
iget-object v0, p0, Lcom/taobao/weex/ui/component/WXScroller$2;->this$0:Lcom/taobao/weex/ui/component/WXScroller;
invoke-virtual {v0}, Lcom/taobao/weex/ui/component/WXScroller;->getEvents()Lcom/taobao/weex/dom/WXEvent;
move-result-object v0
const-string v1, "scroll"
invoke-virtual {v0, v1}, Lcom/taobao/weex/dom/WXEvent;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_18
return-void
.line 220
:cond_18
iget-object v0, p0, Lcom/taobao/weex/ui/component/WXScroller$2;->this$0:Lcom/taobao/weex/ui/component/WXScroller;
# invokes: Lcom/taobao/weex/ui/component/WXScroller;->shouldReport(II)Z
invoke-static {v0, p2, p3}, Lcom/taobao/weex/ui/component/WXScroller;->access$000(Lcom/taobao/weex/ui/component/WXScroller;II)Z
move-result v0
if-eqz v0, :cond_2d
.line 221
iget-object v1, p0, Lcom/taobao/weex/ui/component/WXScroller$2;->this$0:Lcom/taobao/weex/ui/component/WXScroller;
invoke-virtual {p1}, Lcom/taobao/weex/ui/view/WXHorizontalScrollView;->getContentFrame()Landroid/graphics/Rect;
move-result-object v2
move v3, p2
move v4, p3
move v5, p4
move v6, p5
# invokes: Lcom/taobao/weex/ui/component/WXScroller;->fireScrollEvent(Landroid/graphics/Rect;IIII)V
invoke-static/range {v1 .. v6}, Lcom/taobao/weex/ui/component/WXScroller;->access$100(Lcom/taobao/weex/ui/component/WXScroller;Landroid/graphics/Rect;IIII)V
:cond_2d
return-void
.end method