SearchSectionViewHolder.smali

.class public Lhurriyet/mobil/android/hurriyet/adapters/SearchSectionViewHolder;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "SearchSectionViewHolder.java"


# instance fields
.field count:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    .annotation runtime Lbutterknife/BindView;
        value = 0x7f090343
    .end annotation
.end field

.field rootView:Landroid/widget/LinearLayout;
    .annotation runtime Lbutterknife/BindView;
        value = 0x7f090348
    .end annotation
.end field

.field private sectionModel:Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter$SectionModel;

.field title:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;
    .annotation runtime Lbutterknife/BindView;
        value = 0x7f090344
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/view/View;)V
    .registers 2

    .line 33
    invoke-direct {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 34
    invoke-static {p0, p1}, Lbutterknife/ButterKnife;->bind(Ljava/lang/Object;Landroid/view/View;)Lbutterknife/Unbinder;

    return-void
.end method


# virtual methods
.method public setData(Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter$SectionModel;)V
    .registers 5

    .line 39
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/adapters/SearchSectionViewHolder;->sectionModel:Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter$SectionModel;

    if-nez p1, :cond_5

    return-void

    .line 44
    :cond_5
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/adapters/SearchSectionViewHolder;->title:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    iget-object v1, p1, Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter$SectionModel;->title:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setText(Ljava/lang/CharSequence;)V

    .line 45
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/adapters/SearchSectionViewHolder;->count:Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;

    const v1, 0x7f100279

    invoke-static {v1}, Lhurriyet/mobil/android/hurriyet/HApp;->getStrWithID(I)Ljava/lang/String;

    move-result-object v1

    iget p1, p1, Lhurriyet/mobil/android/hurriyet/adapters/SearchAdapter$SectionModel;->count:I

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

    move-result-object p1

    const-string v2, "-1"

    invoke-virtual {v1, v2, p1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lhurriyet/mobil/android/hurriyet/views/HurriyetTextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method