ThemeEditorView$EditorAlert$SearchField.smali
.class Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;
.super Landroid/widget/FrameLayout;
.source "ThemeEditorView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "SearchField"
.end annotation
# instance fields
.field private backgroundView:Landroid/view/View;
.field private clearSearchImageView:Landroid/widget/ImageView;
.field private searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.field final synthetic this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;Landroid/content/Context;)V
.registers 16
.param p2, "context" # Landroid/content/Context;
.line 158
iput-object p1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;
.line 159
invoke-direct {p0, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 161
new-instance v0, Landroid/view/View;
invoke-direct {v0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V
.line 162
.local v0, "searchBackground":Landroid/view/View;
const/high16 v1, 0x41900000 # 18.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
int-to-float v1, v1
const v2, -0xd0b0b
invoke-static {v1, v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->createRoundRectDrawable(FI)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 163
const/high16 v2, -0x40800000 # -1.0f
const/high16 v3, 0x42100000 # 36.0f
const/16 v4, 0x33
const/high16 v5, 0x41600000 # 14.0f
const/high16 v6, 0x41300000 # 11.0f
const/high16 v7, 0x41600000 # 14.0f
const/4 v8, 0x0
invoke-static/range {v2 .. v8}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v1
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 165
new-instance v1, Landroid/widget/ImageView;
invoke-direct {v1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
.line 166
.local v1, "searchIconImageView":Landroid/widget/ImageView;
sget-object v2, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 167
const v2, 0x7f080364
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V
.line 168
new-instance v2, Landroid/graphics/PorterDuffColorFilter;
sget-object v3, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
const v4, -0x5e5751
invoke-direct {v2, v4, v3}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 169
const/high16 v5, 0x42100000 # 36.0f
const/high16 v6, 0x42100000 # 36.0f
const/16 v7, 0x33
const/high16 v8, 0x41800000 # 16.0f
const/high16 v9, 0x41300000 # 11.0f
const/4 v10, 0x0
const/4 v11, 0x0
invoke-static/range {v5 .. v11}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v2
invoke-virtual {p0, v1, v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 171
new-instance v2, Landroid/widget/ImageView;
invoke-direct {v2, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
iput-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
.line 172
sget-object v3, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 174
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
new-instance v3, Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;
invoke-direct {v3}, Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;-><init>()V
move-object v5, v3
.local v5, "progressDrawable":Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 175
const/high16 v2, 0x40e00000 # 7.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v2
invoke-virtual {v5, v2}, Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;->setSide(I)V
.line 176
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
const v3, 0x3dcccccd # 0.1f
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleX(F)V
.line 177
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleY(F)V
.line 178
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
const/4 v3, 0x0
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setAlpha(F)V
.line 179
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
new-instance v3, Landroid/graphics/PorterDuffColorFilter;
sget-object v6, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v3, v4, v6}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 180
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
const/high16 v6, 0x42100000 # 36.0f
const/high16 v7, 0x42100000 # 36.0f
const/16 v8, 0x35
const/high16 v9, 0x41600000 # 14.0f
const/high16 v10, 0x41300000 # 11.0f
const/high16 v11, 0x41600000 # 14.0f
const/4 v12, 0x0
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {p0, v2, v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 181
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
new-instance v3, Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$EditorAlert$SearchField$mNoP4rrlEI-mlStG8UdEOSk0z_Q;
invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$EditorAlert$SearchField$mNoP4rrlEI-mlStG8UdEOSk0z_Q;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;)V
invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 186
new-instance v2, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$1;
invoke-direct {v2, p0, p2, p1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$1;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;Landroid/content/Context;Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)V
iput-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.line 196
const/4 v3, 0x1
const/high16 v4, 0x41800000 # 16.0f
invoke-virtual {v2, v3, v4}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTextSize(IF)V
.line 197
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const v4, -0x675f59
invoke-virtual {v2, v4}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setHintTextColor(I)V
.line 198
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const v4, -0xddddde
invoke-virtual {v2, v4}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTextColor(I)V
.line 199
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/4 v4, 0x0
invoke-virtual {v2, v4}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 200
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/4 v4, 0x0
invoke-virtual {v2, v4, v4, v4, v4}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setPadding(IIII)V
.line 201
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setMaxLines(I)V
.line 202
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setLines(I)V
.line 203
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setSingleLine(Z)V
.line 204
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const v3, 0x10000003
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setImeOptions(I)V
.line 205
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const-string v3, "Search"
const v4, 0x7f0f0ec9
invoke-static {v3, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setHint(Ljava/lang/CharSequence;)V
.line 206
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const v3, -0xaf5715
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorColor(I)V
.line 207
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/high16 v3, 0x41a00000 # 20.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorSize(I)V
.line 208
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/high16 v3, 0x3fc00000 # 1.5f
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorWidth(F)V
.line 209
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/high16 v6, -0x40800000 # -1.0f
const/high16 v7, 0x42200000 # 40.0f
const/16 v8, 0x33
const/high16 v9, 0x42580000 # 54.0f
const/high16 v10, 0x41100000 # 9.0f
const/high16 v11, 0x42380000 # 46.0f
invoke-static/range {v6 .. v12}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v3
invoke-virtual {p0, v2, v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 210
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
new-instance v3, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;
invoke-direct {v3, p0, p1}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)V
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->addTextChangedListener(Landroid/text/TextWatcher;)V
.line 255
iget-object p1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
new-instance v2, Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$EditorAlert$SearchField$4axV20C3QhlovRRuXTku7mzo0FE;
invoke-direct {v2, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ThemeEditorView$EditorAlert$SearchField$4axV20C3QhlovRRuXTku7mzo0FE;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;)V
invoke-virtual {p1, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V
.line 261
return-void
.end method
.method static synthetic access$200(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;
.line 152
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
return-object v0
.end method
.method static synthetic access$300(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;)Landroid/widget/ImageView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;
.line 152
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
return-object v0
.end method
# virtual methods
.method public hideKeyboard()V
.registers 2
.line 264
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->hideKeyboard(Landroid/view/View;)V
.line 265
return-void
.end method
.method public synthetic lambda$new$0$ThemeEditorView$EditorAlert$SearchField(Landroid/view/View;)V
.registers 4
.param p1, "v" # Landroid/view/View;
.line 182
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const-string v1, ""
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setText(Ljava/lang/CharSequence;)V
.line 183
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->showKeyboard(Landroid/view/View;)Z
.line 184
return-void
.end method
.method public synthetic lambda$new$1$ThemeEditorView$EditorAlert$SearchField(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z
.registers 6
.param p1, "v" # Landroid/widget/TextView;
.param p2, "actionId" # I
.param p3, "event" # Landroid/view/KeyEvent;
.line 256
if-eqz p3, :cond_24
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result v0
const/4 v1, 0x1
if-ne v0, v1, :cond_11
invoke-virtual {p3}, Landroid/view/KeyEvent;->getKeyCode()I
move-result v0
const/16 v1, 0x54
if-eq v0, v1, :cond_1f
:cond_11
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result v0
if-nez v0, :cond_24
invoke-virtual {p3}, Landroid/view/KeyEvent;->getKeyCode()I
move-result v0
const/16 v1, 0x42
if-ne v0, v1, :cond_24
.line 257
:cond_1f
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->hideKeyboard(Landroid/view/View;)V
.line 259
:cond_24
const/4 v0, 0x0
return v0
.end method
.method public requestDisallowInterceptTouchEvent(Z)V
.registers 2
.param p1, "disallowIntercept" # Z
.line 274
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->requestDisallowInterceptTouchEvent(Z)V
.line 275
return-void
.end method
.method public showKeyboard()V
.registers 2
.line 268
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->requestFocus()Z
.line 269
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->showKeyboard(Landroid/view/View;)Z
.line 270
return-void
.end method