NormalActionSheet$NormalASAdapter.smali

.class public Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;
.super Landroid/widget/BaseAdapter;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "NormalASAdapter"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;


# direct methods
.method public constructor <init>(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)V
    .registers 2

    iput-object p1, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    return-void
.end method


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

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->localWeekList:[Lcom/sdk/orion/bean/NormalSheetBean;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$200(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)[Lcom/sdk/orion/bean/NormalSheetBean;

    move-result-object v0

    array-length v0, v0

    return v0
.end method

.method public getIsSelected()[Lcom/sdk/orion/bean/NormalSheetBean;
    .registers 2

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->localWeekList:[Lcom/sdk/orion/bean/NormalSheetBean;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$200(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)[Lcom/sdk/orion/bean/NormalSheetBean;

    move-result-object v0

    return-object v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .registers 3

    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .registers 4

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 9

    const/4 v4, 0x0

    if-nez p2, :cond_71

    new-instance v1, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;

    const/4 v0, 0x0

    invoke-direct {v1, p0, v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;-><init>(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$1;)V

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->context:Landroid/content/Context;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$400(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v2, Lcom/sdk/orion/ui/baselibrary/R$layout;->orion_sdk_normal_action_sheet_item:I

    invoke-virtual {v0, v2, p3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    sget v0, Lcom/sdk/orion/ui/baselibrary/R$id;->item_title:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    # setter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->content:Landroid/widget/TextView;
    invoke-static {v1, v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->access$502(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;Landroid/widget/TextView;)Landroid/widget/TextView;

    sget v0, Lcom/sdk/orion/ui/baselibrary/R$id;->check_tag:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    # setter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->check:Landroid/widget/ImageView;
    invoke-static {v1, v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->access$602(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;Landroid/widget/ImageView;)Landroid/widget/ImageView;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v0, v1

    :goto_33
    iget-object v1, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->localWeekList:[Lcom/sdk/orion/bean/NormalSheetBean;
    invoke-static {v1}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$200(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)[Lcom/sdk/orion/bean/NormalSheetBean;

    move-result-object v1

    aget-object v1, v1, p1

    invoke-virtual {v1}, Lcom/sdk/orion/bean/NormalSheetBean;->isSelect()Z

    move-result v1

    if-eqz v1, :cond_78

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->check:Landroid/widget/ImageView;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->access$600(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_48
    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->content:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->access$500(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->context:Landroid/content/Context;
    invoke-static {v1}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$400(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/sdk/orion/ui/baselibrary/R$string;->orion_sdk_normal_as_week:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    iget-object v3, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->localWeekList:[Lcom/sdk/orion/bean/NormalSheetBean;
    invoke-static {v3}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$200(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)[Lcom/sdk/orion/bean/NormalSheetBean;

    move-result-object v3

    aget-object v3, v3, p1

    invoke-virtual {v3}, Lcom/sdk/orion/bean/NormalSheetBean;->getWeek()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v4

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_71
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;

    goto :goto_33

    :cond_78
    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->check:Landroid/widget/ImageView;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;->access$600(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter$ViewHolder;)Landroid/widget/ImageView;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_48
.end method

.method public setChange(I)V
    .registers 4

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->localWeekList:[Lcom/sdk/orion/bean/NormalSheetBean;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$200(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)[Lcom/sdk/orion/bean/NormalSheetBean;

    move-result-object v0

    aget-object v0, v0, p1

    invoke-virtual {v0}, Lcom/sdk/orion/bean/NormalSheetBean;->isSelect()Z

    move-result v0

    if-eqz v0, :cond_1e

    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->localWeekList:[Lcom/sdk/orion/bean/NormalSheetBean;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$200(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)[Lcom/sdk/orion/bean/NormalSheetBean;

    move-result-object v0

    aget-object v0, v0, p1

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/sdk/orion/bean/NormalSheetBean;->setSelect(Z)V

    :goto_1a
    invoke-virtual {p0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->notifyDataSetChanged()V

    return-void

    :cond_1e
    iget-object v0, p0, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet$NormalASAdapter;->this$0:Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;

    # getter for: Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->localWeekList:[Lcom/sdk/orion/bean/NormalSheetBean;
    invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;->access$200(Lcom/sdk/orion/ui/baselibrary/widget/actionsheet/NormalActionSheet;)[Lcom/sdk/orion/bean/NormalSheetBean;

    move-result-object v0

    aget-object v0, v0, p1

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/sdk/orion/bean/NormalSheetBean;->setSelect(Z)V

    goto :goto_1a
.end method