You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
3.3 KiB
117 lines
3.3 KiB
2 years ago
|
.class Lcom/bigkoo/alertview/AlertViewAdapter$Holder;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "AlertViewAdapter.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/bigkoo/alertview/AlertViewAdapter;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = "Holder"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/bigkoo/alertview/AlertViewAdapter;
|
||
|
|
||
|
.field private tvAlert:Landroid/widget/TextView;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lcom/bigkoo/alertview/AlertViewAdapter;Landroid/view/View;)V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 60
|
||
|
iput-object p1, p0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->this$0:Lcom/bigkoo/alertview/AlertViewAdapter;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 61
|
||
|
sget v0, Lcom/bigkoo/alertview/R$id;->tvAlert:I
|
||
|
|
||
|
invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Landroid/widget/TextView;
|
||
|
|
||
|
iput-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->tvAlert:Landroid/widget/TextView;
|
||
|
|
||
|
.line 62
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public UpdateUI(Landroid/content/Context;Ljava/lang/String;I)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 64
|
||
|
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->tvAlert:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
||
|
|
||
|
.line 65
|
||
|
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->this$0:Lcom/bigkoo/alertview/AlertViewAdapter;
|
||
|
|
||
|
invoke-static {v0}, Lcom/bigkoo/alertview/AlertViewAdapter;->access$000(Lcom/bigkoo/alertview/AlertViewAdapter;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->this$0:Lcom/bigkoo/alertview/AlertViewAdapter;
|
||
|
|
||
|
invoke-static {v0}, Lcom/bigkoo/alertview/AlertViewAdapter;->access$000(Lcom/bigkoo/alertview/AlertViewAdapter;)Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 66
|
||
|
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->tvAlert:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
sget v2, Lcom/bigkoo/alertview/R$color;->textColor_alert_button_destructive:I
|
||
|
|
||
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
||
|
|
||
|
.line 71
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 69
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/bigkoo/alertview/AlertViewAdapter$Holder;->tvAlert:Landroid/widget/TextView;
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
sget v2, Lcom/bigkoo/alertview/R$color;->textColor_alert_button_others:I
|
||
|
|
||
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|