LiveScrollablePage$1.smali

.class final Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;


# direct methods
.method constructor <init>(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;)V
    .registers 2

    .line 42
    iput-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onPageScrollStateChanged(I)V
    .registers 3

    .line 69
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {v0, p1}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->c(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;I)I

    if-nez p1, :cond_2a

    .line 70
    iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    iget-object p1, p1, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a:Landroidx/viewpager/widget/ViewPager;

    invoke-virtual {p1}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I

    move-result p1

    if-nez p1, :cond_2a

    .line 71
    iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p1}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->d(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;)Lsg/bigo/core/component/c/a;

    move-result-object p1

    check-cast p1, Lsg/bigo/live/support64/component/a;

    invoke-interface {p1}, Lsg/bigo/live/support64/component/a;->getComponent()Lsg/bigo/core/component/b/d;

    move-result-object p1

    const-class v0, Lsg/bigo/live/support64/component/roomwidget/heart/c;

    invoke-interface {p1, v0}, Lsg/bigo/core/component/b/d;->b(Ljava/lang/Class;)Lsg/bigo/core/component/b/b;

    move-result-object p1

    check-cast p1, Lsg/bigo/live/support64/component/roomwidget/heart/c;

    if-eqz p1, :cond_2a

    .line 73
    invoke-interface {p1}, Lsg/bigo/live/support64/component/roomwidget/heart/c;->f()V

    :cond_2a
    return-void
.end method

.method public final onPageScrolled(IFI)V
    .registers 6

    .line 45
    iget-object p2, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p2}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;)I

    move-result p2

    if-nez p2, :cond_d

    .line 46
    iget-object p2, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p2, p3}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;I)I

    .line 48
    :cond_d
    iget-object p2, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p2}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->b(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;)I

    move-result p2

    const/4 v0, 0x0

    if-eq p2, p1, :cond_20

    .line 49
    iget-object p2, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p2, v0}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;I)I

    .line 50
    iget-object p2, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p2, p1}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->b(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;I)I

    :cond_20
    const/4 p2, 0x1

    if-nez p3, :cond_31

    .line 53
    iget-object p3, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p3, v0}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;I)I

    .line 54
    iget-object p3, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    if-nez p1, :cond_2d

    const/4 v0, 0x1

    :cond_2d
    invoke-static {p3, v0}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;Z)V

    return-void

    .line 57
    :cond_31
    iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p1}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;)I

    move-result v1

    if-le v1, p3, :cond_3a

    const/4 v0, 0x1

    :cond_3a
    invoke-static {p1, v0}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->a(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;Z)V

    return-void
.end method

.method public final onPageSelected(I)V
    .registers 4

    .line 62
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V

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

    move-result-object p1

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 64
    iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage$1;->a:Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;

    invoke-static {p1}, Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;->c(Lsg/bigo/live/support64/component/roomwidget/scrollpage/LiveScrollablePage;)Lsg/bigo/core/component/c/a;

    move-result-object p1

    check-cast p1, Lsg/bigo/live/support64/component/a;

    invoke-interface {p1}, Lsg/bigo/live/support64/component/a;->getPostComponentBus()Lsg/bigo/core/component/a/d;

    move-result-object p1

    sget-object v1, Lsg/bigo/live/support64/component/a/a;->EVENT_CLEAR_SCREEN:Lsg/bigo/live/support64/component/a/a;

    invoke-interface {p1, v1, v0}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V

    return-void
.end method