AudioAutoPlayerControl$1.smali

.class public final Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;
.super Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/player/world/a;-><init>(Landroid/content/Context;Landroidx/recyclerview/widget/RecyclerView;Landroid/view/View;Lkotlin/f/a/b;Lkotlin/f/a/a;Lkotlin/f/a/a;Z)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/player/world/a;

.field final synthetic b:Landroid/graphics/Rect;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/player/world/a;Landroid/graphics/Rect;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/graphics/Rect;",
            ")V"
        }
    .end annotation

    .line 65
    iput-object p1, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    iput-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->b:Landroid/graphics/Rect;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;-><init>()V

    return-void
.end method


# virtual methods
.method public final onScrollStateChanged(Landroidx/recyclerview/widget/RecyclerView;I)V
    .registers 6

    const-string v0, "recyclerView"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    if-nez p2, :cond_dd

    .line 68
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-static {p2}, Lcom/imo/android/imoim/player/world/a;->g(Lcom/imo/android/imoim/player/world/a;)Lkotlin/f/a/a;

    move-result-object p2

    invoke-interface {p2}, Lkotlin/f/a/a;->invoke()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p2

    if-eqz p2, :cond_da

    .line 69
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-static {p2}, Lcom/imo/android/imoim/player/world/a;->h(Lcom/imo/android/imoim/player/world/a;)Landroid/view/View;

    move-result-object p2

    iget-object v0, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->b:Landroid/graphics/Rect;

    invoke-virtual {p2, v0}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z

    .line 70
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->b:Landroid/graphics/Rect;

    new-instance v0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1$a;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1$a;-><init>(Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;)V

    check-cast v0, Lkotlin/f/a/b;

    invoke-static {p1, p2, v0}, Lcom/imo/android/imoim/world/widget/f;->a(Landroidx/recyclerview/widget/RecyclerView;Landroid/graphics/Rect;Lkotlin/f/a/b;)I

    move-result p1

    .line 75
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-static {p2}, Lcom/imo/android/imoim/player/world/a;->i(Lcom/imo/android/imoim/player/world/a;)Lkotlin/f/a/b;

    move-result-object p2

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

    move-result-object p1

    invoke-interface {p2, p1}, Lkotlin/f/a/b;->invoke(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/world/data/bean/c;

    if-eqz p1, :cond_d6

    .line 76
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    .line 1029
    iget-object v0, p1, Lcom/imo/android/imoim/world/data/bean/c;->b:Lcom/imo/android/imoim/world/data/bean/feedentity/d;

    .line 76
    instance-of v1, v0, Lcom/imo/android/imoim/world/data/bean/feedentity/b;

    const/4 v2, 0x0

    if-nez v1, :cond_4d

    move-object v0, v2

    :cond_4d
    check-cast v0, Lcom/imo/android/imoim/world/data/bean/feedentity/b;

    invoke-static {p2, v0}, Lcom/imo/android/imoim/player/world/a;->a(Lcom/imo/android/imoim/player/world/a;Lcom/imo/android/imoim/world/data/bean/feedentity/b;)V

    .line 77
    sget-object p2, Lcom/imo/android/imoim/util/df$ad;->VIDEO_AUTO_PLAY:Lcom/imo/android/imoim/util/df$ad;

    check-cast p2, Ljava/lang/Enum;

    const/4 v0, 0x0

    invoke-static {p2, v0}, Lcom/imo/android/imoim/util/df;->a(Ljava/lang/Enum;I)I

    move-result p2

    .line 78
    invoke-static {}, Lcom/imo/android/imoim/player/world/a;->a()Z

    move-result v1

    if-eqz v1, :cond_97

    const/4 v0, 0x2

    if-eq p2, v0, :cond_d5

    .line 80
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-static {p2}, Lcom/imo/android/imoim/player/world/a;->j(Lcom/imo/android/imoim/player/world/a;)Lcom/imo/android/imoim/world/data/bean/feedentity/b;

    move-result-object p2

    if-eqz p2, :cond_7b

    .line 2029
    iget-object p2, p2, Lcom/imo/android/imoim/world/data/bean/feedentity/b;->a:Lcom/imo/android/imoim/world/data/bean/feedentity/b$j;

    if-eqz p2, :cond_7b

    .line 2144
    iget-object p2, p2, Lcom/imo/android/imoim/world/data/bean/feedentity/b$j;->j:Ljava/util/List;

    if-eqz p2, :cond_7b

    .line 80
    invoke-static {p2}, Lkotlin/a/k;->g(Ljava/util/List;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/imo/android/imoim/world/data/bean/postitem/BasePostItem;

    goto :goto_7c

    :cond_7b
    move-object p2, v2

    :goto_7c
    instance-of v0, p2, Lcom/imo/android/imoim/world/data/bean/postitem/a;

    if-nez v0, :cond_81

    move-object p2, v2

    :cond_81
    check-cast p2, Lcom/imo/android/imoim/world/data/bean/postitem/a;

    if-eqz p2, :cond_96

    .line 81
    iget-object v0, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-virtual {p1}, Lcom/imo/android/imoim/world/data/bean/c;->a()Ljava/lang/String;

    move-result-object p1

    .line 3017
    iget-object p2, p2, Lcom/imo/android/imoim/world/data/bean/postitem/a;->a:Lcom/imo/android/imoim/world/data/bean/postitem/BasePostItem$MediaStruct;

    if-eqz p2, :cond_93

    .line 81
    invoke-virtual {p2}, Lcom/imo/android/imoim/world/data/bean/postitem/BasePostItem$MediaStruct;->a()Ljava/lang/String;

    move-result-object v2

    :cond_93
    invoke-static {v0, p1, v2}, Lcom/imo/android/imoim/player/world/a;->a(Lcom/imo/android/imoim/player/world/a;Ljava/lang/String;Ljava/lang/String;)V

    :cond_96
    return-void

    :cond_97
    if-nez p2, :cond_d5

    .line 85
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-virtual {p1}, Lcom/imo/android/imoim/world/data/bean/c;->a()Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, p1}, Lcom/imo/android/imoim/player/world/a;->a(Lcom/imo/android/imoim/player/world/a;Ljava/lang/String;)V

    .line 86
    iget-object p1, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-static {p1}, Lcom/imo/android/imoim/player/world/a;->j(Lcom/imo/android/imoim/player/world/a;)Lcom/imo/android/imoim/world/data/bean/feedentity/b;

    move-result-object p1

    if-eqz p1, :cond_b9

    .line 3029
    iget-object p1, p1, Lcom/imo/android/imoim/world/data/bean/feedentity/b;->a:Lcom/imo/android/imoim/world/data/bean/feedentity/b$j;

    if-eqz p1, :cond_b9

    .line 3144
    iget-object p1, p1, Lcom/imo/android/imoim/world/data/bean/feedentity/b$j;->j:Ljava/util/List;

    if-eqz p1, :cond_b9

    .line 86
    invoke-static {p1}, Lkotlin/a/k;->g(Ljava/util/List;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/world/data/bean/postitem/BasePostItem;

    goto :goto_ba

    :cond_b9
    move-object p1, v2

    :goto_ba
    instance-of p2, p1, Lcom/imo/android/imoim/world/data/bean/postitem/a;

    if-nez p2, :cond_bf

    move-object p1, v2

    :cond_bf
    check-cast p1, Lcom/imo/android/imoim/world/data/bean/postitem/a;

    if-eqz p1, :cond_d0

    .line 87
    iget-object p2, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    .line 4017
    iget-object p1, p1, Lcom/imo/android/imoim/world/data/bean/postitem/a;->a:Lcom/imo/android/imoim/world/data/bean/postitem/BasePostItem$MediaStruct;

    if-eqz p1, :cond_cd

    .line 87
    invoke-virtual {p1}, Lcom/imo/android/imoim/world/data/bean/postitem/BasePostItem$MediaStruct;->a()Ljava/lang/String;

    move-result-object v2

    :cond_cd
    invoke-static {p2, v2}, Lcom/imo/android/imoim/player/world/a;->b(Lcom/imo/android/imoim/player/world/a;Ljava/lang/String;)V

    .line 88
    :cond_d0
    iget-object p1, p0, Lcom/imo/android/imoim/player/world/AudioAutoPlayerControl$1;->a:Lcom/imo/android/imoim/player/world/a;

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/player/world/a;->a(Z)V

    :cond_d5
    return-void

    .line 93
    :cond_d6
    invoke-static {}, Lcom/imo/android/imoim/player/world/a;->c()V

    return-void

    .line 96
    :cond_da
    invoke-static {}, Lcom/imo/android/imoim/player/world/a;->c()V

    :cond_dd
    return-void
.end method