ShareAlert$SearchField.smali
.class Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
.super Landroid/widget/FrameLayout;
.source "ShareAlert.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lim/tpelyyftgw/ui/components/ShareAlert;
.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 progressDrawable:Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;
.field private searchBackground:Landroid/view/View;
.field private searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.field private searchIconImageView:Landroid/widget/ImageView;
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lim/tpelyyftgw/ui/components/ShareAlert;Landroid/content/Context;)V
.registers 13
.param p2, "context" # Landroid/content/Context;
.line 116
iput-object p1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
.line 117
invoke-direct {p0, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
.line 119
new-instance v0, Landroid/view/View;
invoke-direct {v0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchBackground:Landroid/view/View;
.line 120
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-string v2, "dialogSearchBackground"
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v2
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 121
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchBackground:Landroid/view/View;
const/high16 v1, -0x40800000 # -1.0f
const/high16 v2, 0x42100000 # 36.0f
const/16 v3, 0x33
const/high16 v4, 0x41600000 # 14.0f
const/high16 v5, 0x41300000 # 11.0f
const/high16 v6, 0x41600000 # 14.0f
const/4 v7, 0x0
invoke-static/range {v1 .. v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v1
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 123
new-instance v0, Landroid/widget/ImageView;
invoke-direct {v0, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchIconImageView:Landroid/widget/ImageView;
.line 124
sget-object v1, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 125
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchIconImageView:Landroid/widget/ImageView;
const v1, 0x7f080364
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V
.line 126
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchIconImageView:Landroid/widget/ImageView;
new-instance v1, Landroid/graphics/PorterDuffColorFilter;
const-string v2, "dialogSearchIcon"
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v3
sget-object v4, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v1, v3, v4}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 127
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchIconImageView:Landroid/widget/ImageView;
const/high16 v3, 0x42100000 # 36.0f
const/high16 v4, 0x42100000 # 36.0f
const/16 v5, 0x33
const/high16 v6, 0x41800000 # 16.0f
const/high16 v7, 0x41300000 # 11.0f
const/4 v8, 0x0
const/4 v9, 0x0
invoke-static/range {v3 .. v9}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v1
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 129
new-instance v0, Landroid/widget/ImageView;
invoke-direct {v0, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
.line 130
sget-object v1, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
.line 131
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
new-instance v1, Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;
invoke-direct {v1}, Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;-><init>()V
iput-object v1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->progressDrawable:Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 132
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->progressDrawable:Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;
const/high16 v1, 0x40e00000 # 7.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/CloseProgressDrawable2;->setSide(I)V
.line 133
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
const v1, 0x3dcccccd # 0.1f
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleX(F)V
.line 134
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleY(F)V
.line 135
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setAlpha(F)V
.line 136
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
new-instance v1, Landroid/graphics/PorterDuffColorFilter;
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v2
sget-object v3, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
invoke-direct {v1, v2, v3}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V
.line 137
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
const/high16 v1, 0x42100000 # 36.0f
const/high16 v2, 0x42100000 # 36.0f
const/16 v3, 0x35
const/high16 v4, 0x41600000 # 14.0f
const/high16 v5, 0x41300000 # 11.0f
const/high16 v6, 0x41600000 # 14.0f
const/4 v7, 0x0
invoke-static/range {v1 .. v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v1
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 138
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
new-instance v1, Lim/tpelyyftgw/ui/components/-$$Lambda$ShareAlert$SearchField$lAujb137DVzPXcBQOzz1MxSqW3k;
invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ShareAlert$SearchField$lAujb137DVzPXcBQOzz1MxSqW3k;-><init>(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)V
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 143
new-instance v0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$1;
invoke-direct {v0, p0, p2, p1}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$1;-><init>(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;Landroid/content/Context;Lim/tpelyyftgw/ui/components/ShareAlert;)V
iput-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.line 153
const/4 v1, 0x1
const/high16 v2, 0x41800000 # 16.0f
invoke-virtual {v0, v1, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTextSize(IF)V
.line 154
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const-string v2, "dialogSearchHint"
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v2
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setHintTextColor(I)V
.line 155
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const-string v2, "dialogSearchText"
invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v2
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTextColor(I)V
.line 156
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/4 v2, 0x0
invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 157
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/4 v2, 0x0
invoke-virtual {v0, v2, v2, v2, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setPadding(IIII)V
.line 158
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setMaxLines(I)V
.line 159
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setLines(I)V
.line 160
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setSingleLine(Z)V
.line 161
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const v1, 0x10000003
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setImeOptions(I)V
.line 162
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const-string v1, "ShareSendTo"
const v2, 0x7f0f0f9c
invoke-static {v1, v2}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setHint(Ljava/lang/CharSequence;)V
.line 163
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const-string v1, "featuredStickers_addedIcon"
invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I
move-result v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorColor(I)V
.line 164
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/high16 v1, 0x41a00000 # 20.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorSize(I)V
.line 165
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/high16 v1, 0x3fc00000 # 1.5f
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorWidth(F)V
.line 166
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
const/high16 v1, -0x40800000 # -1.0f
const/high16 v2, 0x42200000 # 40.0f
const/16 v3, 0x33
const/high16 v4, 0x42580000 # 54.0f
const/high16 v5, 0x41100000 # 9.0f
const/high16 v6, 0x42380000 # 46.0f
invoke-static/range {v1 .. v7}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;
move-result-object v1
invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 167
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
new-instance v1, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;
invoke-direct {v1, p0, p1}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;-><init>(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;Lim/tpelyyftgw/ui/components/ShareAlert;)V
invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->addTextChangedListener(Landroid/text/TextWatcher;)V
.line 212
iget-object p1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
new-instance v0, Lim/tpelyyftgw/ui/components/-$$Lambda$ShareAlert$SearchField$yksu_ceczX6Tqq-W_GtHGZ48NB0;
invoke-direct {v0, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$ShareAlert$SearchField$yksu_ceczX6Tqq-W_GtHGZ48NB0;-><init>(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)V
invoke-virtual {p1, v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V
.line 218
return-void
.end method
.method static synthetic access$200(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
.line 107
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
return-object v0
.end method
.method static synthetic access$300(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)Landroid/widget/ImageView;
.registers 2
.param p0, "x0" # Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
.line 107
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
return-object v0
.end method
# virtual methods
.method public hideKeyboard()V
.registers 2
.line 221
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->hideKeyboard(Landroid/view/View;)V
.line 222
return-void
.end method
.method public synthetic lambda$new$0$ShareAlert$SearchField(Landroid/view/View;)V
.registers 4
.param p1, "v" # Landroid/view/View;
.line 139
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$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 140
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->showKeyboard(Landroid/view/View;)Z
.line 141
return-void
.end method
.method public synthetic lambda$new$1$ShareAlert$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 213
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 214
:cond_1f
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->hideKeyboard(Landroid/view/View;)V
.line 216
:cond_24
const/4 v0, 0x0
return v0
.end method
.method public requestDisallowInterceptTouchEvent(Z)V
.registers 2
.param p1, "disallowIntercept" # Z
.line 226
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->requestDisallowInterceptTouchEvent(Z)V
.line 227
return-void
.end method