a.smali
.class public final Lcom/garena/rnrecyclerview/library/sticky/a;
.super Landroid/widget/FrameLayout;
.source "SourceFile"
# interfaces
.implements Lcom/facebook/react/uimanager/ReactPointerEventsView;
# instance fields
.field public a:I
.field public b:Lcom/garena/rnrecyclerview/library/parallax/a;
.field public c:Lcom/garena/rnrecyclerview/library/sticky/b;
.field public d:Lcom/garena/rnrecyclerview/library/sticky2/parallax/a;
.field public e:Lcom/garena/rnrecyclerview/library/sticky2/parallax/c;
.field public f:Lcom/facebook/react/uimanager/PointerEvents;
.field public final g:Lcom/garena/rnrecyclerview/library/sticky/a$a;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.line 1
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
const/16 p1, 0xc8
.line 2
iput p1, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->a:I
.line 3
sget-object p1, Lcom/facebook/react/uimanager/PointerEvents;->AUTO:Lcom/facebook/react/uimanager/PointerEvents;
iput-object p1, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->f:Lcom/facebook/react/uimanager/PointerEvents;
.line 4
new-instance p1, Lcom/garena/rnrecyclerview/library/sticky/a$a;
invoke-direct {p1, p0}, Lcom/garena/rnrecyclerview/library/sticky/a$a;-><init>(Lcom/garena/rnrecyclerview/library/sticky/a;)V
iput-object p1, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->g:Lcom/garena/rnrecyclerview/library/sticky/a$a;
.line 5
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p1
check-cast p1, Lcom/facebook/react/bridge/ReactContext;
const-class v0, Lcom/facebook/react/uimanager/UIManagerModule;
.line 6
invoke-virtual {p1, v0}, Lcom/facebook/react/bridge/ReactContext;->getNativeModule(Ljava/lang/Class;)Lcom/facebook/react/bridge/NativeModule;
move-result-object p1
check-cast p1, Lcom/facebook/react/uimanager/UIManagerModule;
.line 7
invoke-virtual {p1}, Lcom/facebook/react/uimanager/UIManagerModule;->getEventDispatcher()Lcom/facebook/react/uimanager/events/EventDispatcher;
return-void
.end method
# virtual methods
.method public getPointerEvents()Lcom/facebook/react/uimanager/PointerEvents;
.registers 2
iget-object v0, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->f:Lcom/facebook/react/uimanager/PointerEvents;
return-object v0
.end method
.method public getRowHeight()I
.registers 2
iget v0, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->a:I
return v0
.end method
.method public final onMeasure(II)V
.registers 8
.line 1
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
.line 2
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v1
.line 3
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v2
const/4 v3, 0x0
const/4 v4, 0x0
:goto_e
if-ge v4, v2, :cond_22
.line 4
invoke-virtual {p0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v1
invoke-virtual {v1, p1, p2}, Landroid/view/View;->measure(II)V
.line 5
invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v1
invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I
move-result v1
add-int/lit8 v4, v4, 0x1
goto :goto_e
:cond_22
if-nez v1, :cond_26
const/16 v1, 0xc8
.line 6
:cond_26
invoke-virtual {p0, v0, v1}, Landroid/view/View;->setMeasuredDimension(II)V
return-void
.end method
.method public final requestLayout()V
.registers 2
.line 1
invoke-virtual {p0}, Landroid/view/View;->forceLayout()V
.line 2
iget-object v0, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->g:Lcom/garena/rnrecyclerview/library/sticky/a$a;
invoke-virtual {p0, v0}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
return-void
.end method
.method public setEnableJSTouchEvent(Z)V
.registers 2
if-eqz p1, :cond_7
.line 1
sget-object p1, Lcom/facebook/react/uimanager/PointerEvents;->AUTO:Lcom/facebook/react/uimanager/PointerEvents;
iput-object p1, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->f:Lcom/facebook/react/uimanager/PointerEvents;
goto :goto_b
.line 2
:cond_7
sget-object p1, Lcom/facebook/react/uimanager/PointerEvents;->NONE:Lcom/facebook/react/uimanager/PointerEvents;
iput-object p1, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->f:Lcom/facebook/react/uimanager/PointerEvents;
:goto_b
return-void
.end method
.method public setOnStickyParallaxProgressListener(Lcom/garena/rnrecyclerview/library/sticky2/parallax/c;)V
.registers 2
iput-object p1, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->e:Lcom/garena/rnrecyclerview/library/sticky2/parallax/c;
return-void
.end method
.method public setRowHeight(I)V
.registers 2
iput p1, p0, Lcom/garena/rnrecyclerview/library/sticky/a;->a:I
return-void
.end method