ReactCoordinatorLayoutManager.smali

.class public Lcom/garena/rnrecyclerview/library/parallax/ReactCoordinatorLayoutManager;
.super Lcom/facebook/react/uimanager/ViewGroupManager;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/facebook/react/uimanager/ViewGroupManager<",
        "Lcom/garena/rnrecyclerview/library/parallax/b;",
        ">;"
    }
.end annotation


# static fields
.field private static final RESET_HEADER:I = 0x1


# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Lcom/facebook/react/uimanager/ViewGroupManager;-><init>()V

    return-void
.end method


# virtual methods
.method public bridge synthetic addView(Landroid/view/ViewGroup;Landroid/view/View;I)V
    .registers 4

    .line 1
    check-cast p1, Lcom/garena/rnrecyclerview/library/parallax/b;

    invoke-virtual {p0, p1, p2, p3}, Lcom/garena/rnrecyclerview/library/parallax/ReactCoordinatorLayoutManager;->addView(Lcom/garena/rnrecyclerview/library/parallax/b;Landroid/view/View;I)V

    return-void
.end method

.method public addView(Lcom/garena/rnrecyclerview/library/parallax/b;Landroid/view/View;I)V
    .registers 6

    const/4 v0, -0x1

    const/4 v1, 0x1

    if-ne p3, v1, :cond_18

    .line 2
    iput-object p2, p1, Lcom/garena/rnrecyclerview/library/parallax/b;->a:Landroid/view/View;

    .line 3
    new-instance p3, Landroid/widget/FrameLayout$LayoutParams;

    iget v1, p1, Lcom/garena/rnrecyclerview/library/parallax/b;->f:I

    invoke-direct {p3, v0, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0x30

    .line 4
    iput v0, p3, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 5
    invoke-virtual {p1, p2, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 6
    invoke-virtual {p1}, Lcom/garena/rnrecyclerview/library/parallax/b;->a()V

    goto :goto_2c

    .line 7
    :cond_18
    invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 8
    new-instance p3, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {p3, v0, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 9
    iget v0, p1, Lcom/garena/rnrecyclerview/library/parallax/b;->g:I

    iput v0, p3, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I

    .line 10
    invoke-virtual {p1, p2, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 11
    iput-object p2, p1, Lcom/garena/rnrecyclerview/library/parallax/b;->b:Landroid/view/View;

    .line 12
    invoke-virtual {p1}, Lcom/garena/rnrecyclerview/library/parallax/b;->a()V

    :goto_2c
    return-void
.end method

.method public bridge synthetic createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Landroid/view/View;
    .registers 2

    .line 1
    invoke-virtual {p0, p1}, Lcom/garena/rnrecyclerview/library/parallax/ReactCoordinatorLayoutManager;->createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/garena/rnrecyclerview/library/parallax/b;

    move-result-object p1

    return-object p1
.end method

.method public createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/garena/rnrecyclerview/library/parallax/b;
    .registers 3

    .line 2
    new-instance v0, Lcom/garena/rnrecyclerview/library/parallax/b;

    invoke-direct {v0, p1}, Lcom/garena/rnrecyclerview/library/parallax/b;-><init>(Landroid/content/Context;)V

    return-object v0
.end method

.method public getCommandsMap()Ljava/util/Map;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x1

    .line 1
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "resetParallaxHeader"

    .line 2
    invoke-static {v1, v0}, Lcom/facebook/react/common/MapBuilder;->of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;

    move-result-object v0

    return-object v0
.end method

.method public getExportedCustomDirectEventTypeConstants()Ljava/util/Map;
    .registers 4

    .line 1
    invoke-static {}, Lcom/facebook/react/common/MapBuilder;->builder()Lcom/facebook/react/common/MapBuilder$Builder;

    move-result-object v0

    const-string v1, "registrationName"

    const-string v2, "onParallaxMove"

    .line 2
    invoke-static {v1, v2, v0, v2}, Landroidx/biometric/c0;->d(Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/common/MapBuilder$Builder;Ljava/lang/String;)Ljava/util/Map;

    move-result-object v0

    return-object v0
.end method

.method public getName()Ljava/lang/String;
    .registers 2

    const-string v0, "ReactCoordinatorLayout"

    return-object v0
.end method

.method public needsCustomLayoutForChildren()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method public bridge synthetic receiveCommand(Landroid/view/View;ILcom/facebook/react/bridge/ReadableArray;)V
    .registers 4

    .line 1
    check-cast p1, Lcom/garena/rnrecyclerview/library/parallax/b;

    invoke-virtual {p0, p1, p2, p3}, Lcom/garena/rnrecyclerview/library/parallax/ReactCoordinatorLayoutManager;->receiveCommand(Lcom/garena/rnrecyclerview/library/parallax/b;ILcom/facebook/react/bridge/ReadableArray;)V

    return-void
.end method

.method public receiveCommand(Lcom/garena/rnrecyclerview/library/parallax/b;ILcom/facebook/react/bridge/ReadableArray;)V
    .registers 4

    const/4 p3, 0x1

    if-eq p2, p3, :cond_4

    goto :goto_a

    .line 2
    :cond_4
    iget-object p1, p1, Lcom/garena/rnrecyclerview/library/parallax/b;->a:Landroid/view/View;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/view/View;->setTranslationY(F)V

    :goto_a
    return-void
.end method

.method public setHeaderHeight(Lcom/garena/rnrecyclerview/library/parallax/b;D)V
    .registers 4
    .annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
        name = "headerHeight"
    .end annotation

    invoke-static {p2, p3}, Lcom/facebook/react/uimanager/PixelUtil;->toPixelFromDIP(D)F

    move-result p2

    float-to-int p2, p2

    invoke-virtual {p1, p2}, Lcom/garena/rnrecyclerview/library/parallax/b;->setHeaderHeight(I)V

    return-void
.end method

.method public setQuickReturn(Lcom/garena/rnrecyclerview/library/parallax/b;Z)V
    .registers 3
    .annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
        name = "quickReturn"
    .end annotation

    invoke-virtual {p1, p2}, Lcom/garena/rnrecyclerview/library/parallax/b;->setQuickReturn(Z)V

    return-void
.end method

.method public setSpeedRatio(Lcom/garena/rnrecyclerview/library/parallax/b;D)V
    .registers 4
    .annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
        name = "speedRatio"
    .end annotation

    invoke-virtual {p1, p2, p3}, Lcom/garena/rnrecyclerview/library/parallax/b;->setSpeedRatio(D)V

    return-void
.end method

.method public setStopY(Lcom/garena/rnrecyclerview/library/parallax/b;D)V
    .registers 4
    .annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
        name = "stopY"
    .end annotation

    invoke-static {p2, p3}, Lcom/facebook/react/uimanager/PixelUtil;->toPixelFromDIP(D)F

    move-result p2

    float-to-int p2, p2

    invoke-virtual {p1, p2}, Lcom/garena/rnrecyclerview/library/parallax/b;->setStopY(I)V

    return-void
.end method