153 lines
4.1 KiB
Smali
153 lines
4.1 KiB
Smali
.class public Lcom/vk/attachpicker/widget/EditorActionView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "EditorActionView.java"
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/widget/ImageView;
|
|
|
|
.field private b:Landroid/widget/TextView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 19
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 20
|
|
invoke-direct {p0, p1, v0}, Lcom/vk/attachpicker/widget/EditorActionView;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 25
|
|
invoke-direct {p0, p1, p2}, Lcom/vk/attachpicker/widget/EditorActionView;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 30
|
|
invoke-direct {p0, p1, p2}, Lcom/vk/attachpicker/widget/EditorActionView;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 2
|
|
|
|
const v0, 0x7f080734
|
|
|
|
.line 34
|
|
invoke-virtual {p0, v0}, Lcom/vk/attachpicker/widget/EditorActionView;->setBackgroundResource(I)V
|
|
|
|
.line 35
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f0c0333
|
|
|
|
invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
const v0, 0x7f0a04f1
|
|
|
|
.line 36
|
|
invoke-virtual {p0, v0}, Lcom/vk/attachpicker/widget/EditorActionView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
iput-object v0, p0, Lcom/vk/attachpicker/widget/EditorActionView;->a:Landroid/widget/ImageView;
|
|
|
|
const v0, 0x7f0a0b72
|
|
|
|
.line 37
|
|
invoke-virtual {p0, v0}, Lcom/vk/attachpicker/widget/EditorActionView;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/vk/attachpicker/widget/EditorActionView;->b:Landroid/widget/TextView;
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 40
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/vtosters/lite/R$a1;->EditorActionView:[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, p2, v0, v1, v1}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 45
|
|
:try_start_0
|
|
invoke-virtual {p1, v1, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 46
|
|
invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 48
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 51
|
|
iget-object p1, p0, Lcom/vk/attachpicker/widget/EditorActionView;->a:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 54
|
|
iget-object p1, p0, Lcom/vk/attachpicker/widget/EditorActionView;->b:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
.line 48
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 49
|
|
throw p2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|