BackgroundAdapter.smali

.class public Lcom/imo/android/imoim/profile/background/BackgroundAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/imo/android/imoim/profile/background/BackgroundAdapter$a;,
        Lcom/imo/android/imoim/profile/background/BackgroundAdapter$b;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Lcom/imo/android/imoim/profile/background/BackgroundAdapter$a;",
        ">;"
    }
.end annotation


# instance fields
.field a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/imo/android/imoim/profile/background/d;",
            ">;"
        }
    .end annotation
.end field

.field b:Lcom/imo/android/imoim/profile/background/BackgroundAdapter$b;

.field c:Ljava/lang/String;

.field private d:Landroid/view/LayoutInflater;

.field private e:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3

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

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

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

    iput-object v0, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->a:Ljava/util/List;

    .line 27
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    iput-object p1, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->d:Landroid/view/LayoutInflater;

    return-void
.end method

.method static synthetic a(Lcom/imo/android/imoim/profile/background/BackgroundAdapter;Ljava/lang/String;)Ljava/lang/String;
    .registers 2

    .line 19
    iput-object p1, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->c:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/imo/android/imoim/profile/background/BackgroundAdapter;)Z
    .registers 1

    .line 19
    iget-boolean p0, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->e:Z

    return p0
.end method

.method static synthetic b(Lcom/imo/android/imoim/profile/background/BackgroundAdapter;)Ljava/lang/String;
    .registers 1

    .line 19
    iget-object p0, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->c:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic c(Lcom/imo/android/imoim/profile/background/BackgroundAdapter;)Lcom/imo/android/imoim/profile/background/BackgroundAdapter$b;
    .registers 1

    .line 19
    iget-object p0, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->b:Lcom/imo/android/imoim/profile/background/BackgroundAdapter$b;

    return-object p0
.end method


# virtual methods
.method public getItemCount()I
    .registers 2

    .line 82
    iget-object v0, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->a:Ljava/util/List;

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

    move-result v0

    return v0
.end method

.method public synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .registers 8

    .line 19
    check-cast p1, Lcom/imo/android/imoim/profile/background/BackgroundAdapter$a;

    const/4 v0, 0x1

    .line 1054
    iput-boolean v0, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->e:Z

    .line 1055
    invoke-static {p1}, Lcom/imo/android/imoim/profile/background/BackgroundAdapter$a;->a(Lcom/imo/android/imoim/profile/background/BackgroundAdapter$a;)Lcom/imo/android/imoim/fresco/XCircleImageView;

    move-result-object p1

    .line 1056
    iget-object v1, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->a:Ljava/util/List;

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

    move-result-object p2

    check-cast p2, Lcom/imo/android/imoim/profile/background/d;

    .line 1057
    iget-object v1, p2, Lcom/imo/android/imoim/profile/background/d;->a:Ljava/lang/String;

    .line 1058
    iget-object v2, p2, Lcom/imo/android/imoim/profile/background/d;->b:Ljava/lang/String;

    .line 1059
    iget-object v3, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->c:Ljava/lang/String;

    invoke-static {v3, v1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v3

    const/4 v4, 0x0

    if-eqz v3, :cond_22

    .line 1060
    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/fresco/XCircleImageView;->setSelected(Z)V

    goto :goto_25

    .line 1062
    :cond_22
    invoke-virtual {p1, v4}, Lcom/imo/android/imoim/fresco/XCircleImageView;->setSelected(Z)V

    :goto_25
    const v0, 0x7f0601be

    .line 1064
    invoke-static {p1, v2, v0}, Lcom/imo/android/imoim/managers/aq;->a(Lcom/imo/android/imoim/fresco/ImoImageView;Ljava/lang/String;I)V

    .line 1065
    new-instance v0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter$1;

    invoke-direct {v0, p0, v1, p2}, Lcom/imo/android/imoim/profile/background/BackgroundAdapter$1;-><init>(Lcom/imo/android/imoim/profile/background/BackgroundAdapter;Ljava/lang/String;Lcom/imo/android/imoim/profile/background/d;)V

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/fresco/XCircleImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1077
    iput-boolean v4, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->e:Z

    return-void
.end method

.method public synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .registers 5

    .line 2048
    iget-object p2, p0, Lcom/imo/android/imoim/profile/background/BackgroundAdapter;->d:Landroid/view/LayoutInflater;

    const v0, 0x7f0b02c5

    const/4 v1, 0x0

    invoke-virtual {p2, v0, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 2049
    new-instance p2, Lcom/imo/android/imoim/profile/background/BackgroundAdapter$a;

    invoke-direct {p2, p1}, Lcom/imo/android/imoim/profile/background/BackgroundAdapter$a;-><init>(Landroid/view/View;)V

    return-object p2
.end method