100 lines
3.3 KiB
Smali
100 lines
3.3 KiB
Smali
.class Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$5;
|
|
.super Ljava/lang/Object;
|
|
.source "DropdownMenuEndIconDelegate.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/textfield/TextInputLayout$OnEndIconChangedListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$5;->this$0:Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onEndIconChanged(Lcom/google/android/material/textfield/TextInputLayout;I)V
|
|
.locals 2
|
|
.param p1 # Lcom/google/android/material/textfield/TextInputLayout;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lcom/google/android/material/textfield/TextInputLayout;->getEditText()Landroid/widget/EditText;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/AutoCompleteTextView;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-ne p2, v0, :cond_1
|
|
|
|
.line 2
|
|
new-instance p2, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$5$1;
|
|
|
|
invoke-direct {p2, p0, p1}, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$5$1;-><init>(Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$5;Landroid/widget/AutoCompleteTextView;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/AutoCompleteTextView;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Landroid/widget/AutoCompleteTextView;->getOnFocusChangeListener()Landroid/view/View$OnFocusChangeListener;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$5;->this$0:Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;
|
|
|
|
invoke-static {v0}, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->access$1100(Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;)Landroid/view/View$OnFocusChangeListener;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v1}, Landroid/widget/AutoCompleteTextView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {p1, v1}, Landroid/widget/AutoCompleteTextView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
|
|
.line 6
|
|
invoke-static {}, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->access$1200()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v1}, Landroid/widget/AutoCompleteTextView;->setOnDismissListener(Landroid/widget/AutoCompleteTextView$OnDismissListener;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|