h.smali

.class public final Lcom/masala/share/stat/h;
.super Lcom/masala/share/stat/LikeBaseReporter;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/masala/share/stat/LikeBaseReporter<",
        "Lcom/masala/share/stat/h;",
        ">;"
    }
.end annotation


# static fields
.field public static a:I

.field public static b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/masala/share/proto/model/VideoSimpleItem;",
            ">;"
        }
    .end annotation
.end field

.field public static final c:Ljava/util/LinkedHashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedHashSet<",
            "Lcom/masala/share/proto/model/VideoCommentItem;",
            ">;"
        }
    .end annotation
.end field

.field public static d:Ljava/lang/String;

.field public static e:Lcom/masala/share/stat/t;

.field public static f:I

.field public static final g:Lcom/masala/share/stat/h;

.field private static h:Z


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .line 36
    new-instance v0, Lcom/masala/share/stat/h;

    invoke-direct {v0}, Lcom/masala/share/stat/h;-><init>()V

    sput-object v0, Lcom/masala/share/stat/h;->g:Lcom/masala/share/stat/h;

    .line 41
    new-instance v0, Ljava/util/ArrayList;

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

    check-cast v0, Ljava/util/List;

    sput-object v0, Lcom/masala/share/stat/h;->b:Ljava/util/List;

    .line 42
    new-instance v0, Ljava/util/LinkedHashSet;

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

    sput-object v0, Lcom/masala/share/stat/h;->c:Ljava/util/LinkedHashSet;

    const/4 v0, -0x1

    .line 49
    sput v0, Lcom/masala/share/stat/h;->f:I

    return-void
.end method

.method private constructor <init>()V
    .registers 1

    .line 36
    invoke-direct {p0}, Lcom/masala/share/stat/LikeBaseReporter;-><init>()V

    return-void
.end method

.method public static final a(I)V
    .registers 1

    .line 38
    sput p0, Lcom/masala/share/stat/h;->a:I

    return-void
.end method

.method public static a(Landroidx/recyclerview/widget/RecyclerView;Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;Landroidx/recyclerview/widget/LinearLayoutManager;)V
    .registers 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/recyclerview/widget/RecyclerView;",
            "Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter<",
            "Lcom/imo/android/imoim/feeds/ui/vhadapter/VHolder<",
            "Ljava/lang/Object;",
            ">;>;",
            "Landroidx/recyclerview/widget/LinearLayoutManager;",
            ")V"
        }
    .end annotation

    if-eqz p0, :cond_a9

    if-eqz p1, :cond_a9

    if-nez p2, :cond_8

    goto/16 :goto_a9

    .line 123
    :cond_8
    invoke-virtual {p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findFirstVisibleItemPosition()I

    move-result v0

    .line 124
    invoke-virtual {p2}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastVisibleItemPosition()I

    move-result p2

    .line 126
    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->getItemCount()I

    move-result v1

    if-ltz v0, :cond_a9

    if-ge p2, v1, :cond_a9

    if-ge p2, v0, :cond_1c

    goto/16 :goto_a9

    .line 131
    :cond_1c
    invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView;->getHeight()I

    move-result v1

    :goto_20
    if-ge v0, p2, :cond_a9

    .line 133
    invoke-virtual {p0, v0}, Landroidx/recyclerview/widget/RecyclerView;->findViewHolderForAdapterPosition(I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    move-result-object v2

    .line 134
    instance-of v3, v2, Lcom/imo/android/imoim/feeds/ui/home/follow/FollowVHBridge$FollowVHolder;

    if-eqz v3, :cond_89

    .line 135
    check-cast v2, Lcom/imo/android/imoim/feeds/ui/home/follow/FollowVHBridge$FollowVHolder;

    iget-object v3, v2, Lcom/imo/android/imoim/feeds/ui/home/follow/FollowVHBridge$FollowVHolder;->a:Landroid/widget/LinearLayout;

    if-eqz v3, :cond_a5

    .line 1149
    iget-object v4, p1, Lcom/imo/android/imoim/feeds/ui/vhadapter/VHAdapter;->c:Lcom/imo/android/imoim/feeds/ui/vhadapter/a;

    .line 136
    const-class v5, Lcom/masala/share/proto/model/VideoSimpleItem;

    invoke-virtual {v4, v0, v5}, Lcom/imo/android/imoim/feeds/ui/vhadapter/a;->a(ILjava/lang/Class;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/masala/share/proto/model/VideoSimpleItem;

    .line 139
    invoke-virtual {v3}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v3

    if-nez v3, :cond_a5

    iget-object v3, v2, Lcom/imo/android/imoim/feeds/ui/home/follow/FollowVHBridge$FollowVHolder;->b:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-eqz v3, :cond_a5

    if-eqz v4, :cond_a5

    iget-object v3, v4, Lcom/masala/share/proto/model/VideoSimpleItem;->comments:Ljava/util/List;

    if-eqz v3, :cond_a5

    iget-object v3, v2, Lcom/imo/android/imoim/feeds/ui/home/follow/FollowVHBridge$FollowVHolder;->b:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    iget-object v5, v4, Lcom/masala/share/proto/model/VideoSimpleItem;->comments:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    if-eq v3, v5, :cond_5d

    goto :goto_a5

    :cond_5d
    const/4 v3, 0x0

    .line 144
    iget-object v5, v2, Lcom/imo/android/imoim/feeds/ui/home/follow/FollowVHBridge$FollowVHolder;->b:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    :goto_64
    if-ge v3, v5, :cond_a5

    .line 145
    iget-object v6, v2, Lcom/imo/android/imoim/feeds/ui/home/follow/FollowVHBridge$FollowVHolder;->b:Ljava/util/List;

    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/imo/android/imoim/feeds/ui/home/follow/a;

    .line 146
    iget-object v7, v4, Lcom/masala/share/proto/model/VideoSimpleItem;->comments:Ljava/util/List;

    invoke-interface {v7, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/masala/share/proto/model/VideoCommentItem;

    .line 2023
    iget-object v6, v6, Lcom/imo/android/imoim/feeds/ui/home/follow/a;->e:Landroid/view/View;

    const/16 v8, 0x64

    const/4 v9, 0x1

    .line 147
    invoke-static {v6, v8, v9}, Lcom/imo/android/imoim/util/eo;->a(Landroid/view/View;II)Z

    move-result v6

    if-eqz v6, :cond_86

    .line 148
    sget-object v6, Lcom/masala/share/stat/h;->c:Ljava/util/LinkedHashSet;

    invoke-virtual {v6, v7}, Ljava/util/LinkedHashSet;->add(Ljava/lang/Object;)Z

    :cond_86
    add-int/lit8 v3, v3, 0x1

    goto :goto_64

    .line 152
    :cond_89
    instance-of v3, v2, Lcom/imo/android/imoim/feeds/ui/recommend/brige/RecommendListViewHolder;

    if-eqz v3, :cond_a5

    .line 153
    iget-object v3, v2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    if-eqz v3, :cond_a5

    .line 154
    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v4

    if-ltz v4, :cond_a5

    invoke-virtual {v3}, Landroid/view/View;->getBottom()I

    move-result v3

    if-gt v3, v1, :cond_a5

    .line 156
    check-cast v2, Lcom/imo/android/imoim/feeds/ui/recommend/brige/RecommendListViewHolder;

    invoke-virtual {v2}, Lcom/imo/android/imoim/feeds/ui/recommend/brige/RecommendListViewHolder;->d()Ljava/lang/String;

    move-result-object v2

    sput-object v2, Lcom/masala/share/stat/h;->d:Ljava/lang/String;

    :cond_a5
    :goto_a5
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_20

    :cond_a9
    :goto_a9
    return-void
.end method

.method public static a(Lcom/masala/share/stat/t;)V
    .registers 1

    .line 44
    sput-object p0, Lcom/masala/share/stat/h;->e:Lcom/masala/share/stat/t;

    return-void
.end method

.method public static final a(Z)V
    .registers 1

    .line 40
    sput-boolean p0, Lcom/masala/share/stat/h;->h:Z

    return-void
.end method

.method public static final a()Z
    .registers 1

    .line 40
    sget-boolean v0, Lcom/masala/share/stat/h;->h:Z

    return v0
.end method

.method public static b(I)V
    .registers 2

    .line 51
    sget-object v0, Lcom/masala/share/stat/h;->e:Lcom/masala/share/stat/t;

    if-eqz v0, :cond_6

    .line 1066
    iput p0, v0, Lcom/masala/share/stat/t;->a:I

    .line 52
    :cond_6
    sput p0, Lcom/masala/share/stat/h;->f:I

    return-void
.end method


# virtual methods
.method public final a(JJ)V
    .registers 8

    const/4 v0, 0x3

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

    move-result-object v0

    const-string v1, "action"

    invoke-virtual {p0, v1, v0}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    check-cast v0, Lcom/masala/share/stat/h;

    .line 81
    sget v1, Lcom/masala/share/stat/h;->a:I

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

    move-result-object v1

    const-string v2, "source"

    invoke-virtual {v0, v2, v1}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    check-cast v0, Lcom/masala/share/stat/h;

    .line 82
    invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object p1

    const-string p2, "comment_id"

    invoke-virtual {v0, p2, p1}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/masala/share/stat/h;

    .line 83
    sget p2, Lcom/masala/share/stat/h;->f:I

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p2

    const-string v0, "post_position"

    invoke-virtual {p1, v0, p2}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/masala/share/stat/h;

    .line 84
    invoke-static {p3, p4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object p2

    const-string p3, "post_id"

    invoke-virtual {p1, p3, p2}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/masala/share/stat/h;

    .line 85
    invoke-virtual {p1}, Lcom/masala/share/stat/h;->reportN()V

    return-void
.end method

.method public final a(Ljava/util/List;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/masala/share/proto/model/VideoSimpleItem;",
            ">;)V"
        }
    .end annotation

    const-string v0, "datas"

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

    .line 103
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :cond_c
    :goto_c
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_31

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/masala/share/proto/model/VideoSimpleItem;

    .line 104
    iget v5, v4, Lcom/masala/share/proto/model/VideoSimpleItem;->isRecommendPost:I

    if-nez v5, :cond_c

    add-int/lit8 v2, v2, 0x1

    .line 106
    sget-object v5, Lcom/masala/share/stat/h;->b:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->isEmpty()Z

    move-result v5

    if-nez v5, :cond_2e

    sget-object v5, Lcom/masala/share/stat/h;->b:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_c

    :cond_2e
    add-int/lit8 v3, v3, 0x1

    goto :goto_c

    .line 111
    :cond_31
    sput-object p1, Lcom/masala/share/stat/h;->b:Ljava/util/List;

    const/4 p1, 0x5

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

    move-result-object p1

    const-string v0, "action"

    invoke-virtual {p0, v0, p1}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/masala/share/stat/h;

    .line 113
    sget v0, Lcom/masala/share/stat/h;->a:I

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

    move-result-object v0

    const-string v4, "source"

    invoke-virtual {p1, v4, v0}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/masala/share/stat/h;

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

    move-result-object v0

    const-string v2, "post_exp_num"

    invoke-virtual {p1, v2, v0}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/masala/share/stat/h;

    if-lez v3, :cond_5d

    const/4 v1, 0x1

    .line 115
    :cond_5d
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "is_post_new"

    invoke-virtual {p1, v1, v0}, Lcom/masala/share/stat/h;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object p1

    check-cast p1, Lcom/masala/share/stat/h;

    .line 116
    invoke-virtual {p1}, Lcom/masala/share/stat/h;->reportN()V

    return-void
.end method

.method protected final getEventId()Ljava/lang/String;
    .registers 2

    const-string v0, "01101005"

    return-object v0
.end method