153 lines
4.0 KiB
Smali
153 lines
4.0 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 1
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
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 3
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 4
|
|
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 5
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 6
|
|
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, 0x7f08098b
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->setBackgroundResource(I)V
|
|
|
|
.line 2
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7f0d0441
|
|
|
|
invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
const v0, 0x7f0a05ee
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->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, 0x7f0a0e2e
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->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 5
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/vtosters/lite/a0;->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 6
|
|
:try_start_0
|
|
invoke-virtual {p1, v1, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 7
|
|
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 8
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 9
|
|
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 10
|
|
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 11
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 12
|
|
throw p2
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|