269 lines
7.6 KiB
Smali
269 lines
7.6 KiB
Smali
.class public final Lcom/vk/poll/views/PollSettingView;
|
|
.super Landroid/widget/LinearLayout;
|
|
.source "PollEditViews.kt"
|
|
|
|
|
|
# instance fields
|
|
.field private final a:Landroid/widget/CheckBox;
|
|
|
|
.field private final b:Landroid/widget/TextView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
const p1, 0x7f0802f7
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p1
|
|
|
|
const v0, 0x7f0d0465
|
|
|
|
invoke-virtual {p1, v0, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
const p1, 0x7f0a0a16
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "findViewById(R.id.poll_option_checkbox)"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/CheckBox;
|
|
|
|
iput-object p1, p0, Lcom/vk/poll/views/PollSettingView;->a:Landroid/widget/CheckBox;
|
|
|
|
const p1, 0x7f0a0a1e
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "findViewById(R.id.poll_option_tv)"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
iput-object p1, p0, Lcom/vk/poll/views/PollSettingView;->b:Landroid/widget/TextView;
|
|
|
|
.line 7
|
|
new-instance p1, Lcom/vk/poll/views/PollSettingView$a;
|
|
|
|
invoke-direct {p1, p0}, Lcom/vk/poll/views/PollSettingView$a;-><init>(Lcom/vk/poll/views/PollSettingView;)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 3
|
|
|
|
.line 8
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
const v1, 0x7f0802f7
|
|
|
|
.line 10
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v1
|
|
|
|
const v2, 0x7f0d0465
|
|
|
|
invoke-virtual {v1, v2, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
const v1, 0x7f0a0a16
|
|
|
|
.line 12
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "findViewById(R.id.poll_option_checkbox)"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v1, Landroid/widget/CheckBox;
|
|
|
|
iput-object v1, p0, Lcom/vk/poll/views/PollSettingView;->a:Landroid/widget/CheckBox;
|
|
|
|
const v1, 0x7f0a0a1e
|
|
|
|
.line 13
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "findViewById(R.id.poll_option_tv)"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v1, Landroid/widget/TextView;
|
|
|
|
iput-object v1, p0, Lcom/vk/poll/views/PollSettingView;->b:Landroid/widget/TextView;
|
|
|
|
.line 14
|
|
new-instance v1, Lcom/vk/poll/views/PollSettingView$a;
|
|
|
|
invoke-direct {v1, p0}, Lcom/vk/poll/views/PollSettingView$a;-><init>(Lcom/vk/poll/views/PollSettingView;)V
|
|
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 15
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
.line 16
|
|
sget-object v1, Lcom/vtosters/lite/a0;->PollSettingView:[I
|
|
|
|
.line 17
|
|
invoke-virtual {p1, p2, v1, v0, v0}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
:try_start_0
|
|
iget-object p2, p0, Lcom/vk/poll/views/PollSettingView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 19
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lcom/vk/poll/views/PollSettingView;)Landroid/widget/CheckBox;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p0, p0, Lcom/vk/poll/views/PollSettingView;->a:Landroid/widget/CheckBox;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Z
|
|
.locals 1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/vk/poll/views/PollSettingView;->a:Landroid/widget/CheckBox;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final setChecked(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/vk/poll/views/PollSettingView;->a:Landroid/widget/CheckBox;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/CheckBox;->setChecked(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setEnabledState(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/vk/poll/views/PollSettingView;->a:Landroid/widget/CheckBox;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/CheckBox;->setEnabled(Z)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setEnabled(Z)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/vk/poll/views/PollSettingView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setEnabled(Z)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setOnCheckedChangeListener(Lkotlin/jvm/b/Functions2;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/jvm/b/Functions2<",
|
|
"-",
|
|
"Ljava/lang/Boolean;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/vk/poll/views/PollSettingView;->a:Landroid/widget/CheckBox;
|
|
|
|
new-instance v1, Lcom/vk/poll/views/PollSettingView$b;
|
|
|
|
invoke-direct {v1, p1}, Lcom/vk/poll/views/PollSettingView$b;-><init>(Lkotlin/jvm/b/Functions2;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|