84 lines
2.7 KiB
Smali
84 lines
2.7 KiB
Smali
.class Lcom/google/android/material/textfield/ClearTextEndIconDelegate$4;
|
|
.super Ljava/lang/Object;
|
|
.source "ClearTextEndIconDelegate.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/textfield/TextInputLayout$OnEndIconChangedListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/material/textfield/ClearTextEndIconDelegate;
|
|
.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/ClearTextEndIconDelegate;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/android/material/textfield/ClearTextEndIconDelegate;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/textfield/ClearTextEndIconDelegate$4;->this$0:Lcom/google/android/material/textfield/ClearTextEndIconDelegate;
|
|
|
|
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 1
|
|
.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
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance p2, Lcom/google/android/material/textfield/ClearTextEndIconDelegate$4$1;
|
|
|
|
invoke-direct {p2, p0, p1}, Lcom/google/android/material/textfield/ClearTextEndIconDelegate$4$1;-><init>(Lcom/google/android/material/textfield/ClearTextEndIconDelegate$4;Landroid/widget/EditText;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/EditText;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Landroid/widget/EditText;->getOnFocusChangeListener()Landroid/view/View$OnFocusChangeListener;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/ClearTextEndIconDelegate$4;->this$0:Lcom/google/android/material/textfield/ClearTextEndIconDelegate;
|
|
|
|
invoke-static {v0}, Lcom/google/android/material/textfield/ClearTextEndIconDelegate;->access$200(Lcom/google/android/material/textfield/ClearTextEndIconDelegate;)Landroid/view/View$OnFocusChangeListener;
|
|
|
|
move-result-object v0
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p1, p2}, Landroid/widget/EditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|