239 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			239 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
.class public Landroidx/preference/b;
 | 
						|
.super Landroidx/preference/j;
 | 
						|
.source "EditTextPreferenceDialogFragment.java"
 | 
						|
 | 
						|
 | 
						|
# annotations
 | 
						|
.annotation runtime Ljava/lang/Deprecated;
 | 
						|
.end annotation
 | 
						|
 | 
						|
 | 
						|
# static fields
 | 
						|
.field public static final W0:Ljava/lang/String; = "EditTextPreferenceDialogFragment.text"
 | 
						|
 | 
						|
 | 
						|
# instance fields
 | 
						|
.field public K0:Landroid/widget/EditText;
 | 
						|
 | 
						|
.field public V0:Ljava/lang/CharSequence;
 | 
						|
 | 
						|
 | 
						|
# direct methods
 | 
						|
.method public constructor <init>()V
 | 
						|
    .locals 0
 | 
						|
    .annotation runtime Ljava/lang/Deprecated;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .line 1
 | 
						|
    invoke-direct {p0}, Landroidx/preference/j;-><init>()V
 | 
						|
 | 
						|
    return-void
 | 
						|
.end method
 | 
						|
 | 
						|
.method public static i(Ljava/lang/String;)Landroidx/preference/b;
 | 
						|
    .locals 3
 | 
						|
    .annotation runtime Ljava/lang/Deprecated;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    .line 1
 | 
						|
    new-instance v0, Landroidx/preference/b;
 | 
						|
 | 
						|
    invoke-direct {v0}, Landroidx/preference/b;-><init>()V
 | 
						|
 | 
						|
    .line 2
 | 
						|
    new-instance v1, Landroid/os/Bundle;
 | 
						|
 | 
						|
    const/4 v2, 0x1
 | 
						|
 | 
						|
    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V
 | 
						|
 | 
						|
    const-string v2, "key"
 | 
						|
 | 
						|
    .line 3
 | 
						|
    invoke-virtual {v1, v2, p0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
 | 
						|
 | 
						|
    .line 4
 | 
						|
    invoke-virtual {v0, v1}, Landroid/app/DialogFragment;->setArguments(Landroid/os/Bundle;)V
 | 
						|
 | 
						|
    return-object v0
 | 
						|
.end method
 | 
						|
 | 
						|
 | 
						|
# virtual methods
 | 
						|
.method public b()Z
 | 
						|
    .locals 1
 | 
						|
    .annotation build Landroidx/annotation/RestrictTo;
 | 
						|
        value = {
 | 
						|
            .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
 | 
						|
        }
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    const/4 v0, 0x1
 | 
						|
 | 
						|
    return v0
 | 
						|
.end method
 | 
						|
 | 
						|
.method public c(Landroid/view/View;)V
 | 
						|
    .locals 1
 | 
						|
 | 
						|
    .line 1
 | 
						|
    invoke-super {p0, p1}, Landroidx/preference/j;->c(Landroid/view/View;)V
 | 
						|
 | 
						|
    const v0, 0x1020003
 | 
						|
 | 
						|
    .line 2
 | 
						|
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
 | 
						|
 | 
						|
    move-result-object p1
 | 
						|
 | 
						|
    check-cast p1, Landroid/widget/EditText;
 | 
						|
 | 
						|
    iput-object p1, p0, Landroidx/preference/b;->K0:Landroid/widget/EditText;
 | 
						|
 | 
						|
    .line 3
 | 
						|
    invoke-virtual {p1}, Landroid/widget/EditText;->requestFocus()Z
 | 
						|
 | 
						|
    .line 4
 | 
						|
    iget-object p1, p0, Landroidx/preference/b;->K0:Landroid/widget/EditText;
 | 
						|
 | 
						|
    if-eqz p1, :cond_0
 | 
						|
 | 
						|
    .line 5
 | 
						|
    iget-object v0, p0, Landroidx/preference/b;->V0:Ljava/lang/CharSequence;
 | 
						|
 | 
						|
    invoke-virtual {p1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
 | 
						|
 | 
						|
    .line 6
 | 
						|
    iget-object p1, p0, Landroidx/preference/b;->K0:Landroid/widget/EditText;
 | 
						|
 | 
						|
    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    invoke-interface {v0}, Landroid/text/Editable;->length()I
 | 
						|
 | 
						|
    move-result v0
 | 
						|
 | 
						|
    invoke-virtual {p1, v0}, Landroid/widget/EditText;->setSelection(I)V
 | 
						|
 | 
						|
    return-void
 | 
						|
 | 
						|
    .line 7
 | 
						|
    :cond_0
 | 
						|
    new-instance p1, Ljava/lang/IllegalStateException;
 | 
						|
 | 
						|
    const-string v0, "Dialog view must contain an EditText with id @android:id/edit"
 | 
						|
 | 
						|
    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
 | 
						|
 | 
						|
    throw p1
 | 
						|
.end method
 | 
						|
 | 
						|
.method public e(Z)V
 | 
						|
    .locals 1
 | 
						|
    .annotation runtime Ljava/lang/Deprecated;
 | 
						|
    .end annotation
 | 
						|
 | 
						|
    if-eqz p1, :cond_0
 | 
						|
 | 
						|
    .line 1
 | 
						|
    iget-object p1, p0, Landroidx/preference/b;->K0:Landroid/widget/EditText;
 | 
						|
 | 
						|
    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
 | 
						|
 | 
						|
    move-result-object p1
 | 
						|
 | 
						|
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
 | 
						|
 | 
						|
    move-result-object p1
 | 
						|
 | 
						|
    .line 2
 | 
						|
    invoke-virtual {p0}, Landroidx/preference/b;->h()Landroidx/preference/EditTextPreference;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    invoke-virtual {v0, p1}, Landroidx/preference/Preference;->b(Ljava/lang/Object;)Z
 | 
						|
 | 
						|
    move-result v0
 | 
						|
 | 
						|
    if-eqz v0, :cond_0
 | 
						|
 | 
						|
    .line 3
 | 
						|
    invoke-virtual {p0}, Landroidx/preference/b;->h()Landroidx/preference/EditTextPreference;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    invoke-virtual {v0, p1}, Landroidx/preference/EditTextPreference;->C1(Ljava/lang/String;)V
 | 
						|
 | 
						|
    :cond_0
 | 
						|
    return-void
 | 
						|
.end method
 | 
						|
 | 
						|
.method public final h()Landroidx/preference/EditTextPreference;
 | 
						|
    .locals 1
 | 
						|
 | 
						|
    .line 1
 | 
						|
    invoke-virtual {p0}, Landroidx/preference/j;->a()Landroidx/preference/DialogPreference;
 | 
						|
 | 
						|
    move-result-object v0
 | 
						|
 | 
						|
    check-cast v0, Landroidx/preference/EditTextPreference;
 | 
						|
 | 
						|
    return-object v0
 | 
						|
.end method
 | 
						|
 | 
						|
.method public onCreate(Landroid/os/Bundle;)V
 | 
						|
    .locals 1
 | 
						|
 | 
						|
    .line 1
 | 
						|
    invoke-super {p0, p1}, Landroidx/preference/j;->onCreate(Landroid/os/Bundle;)V
 | 
						|
 | 
						|
    if-nez p1, :cond_0
 | 
						|
 | 
						|
    .line 2
 | 
						|
    invoke-virtual {p0}, Landroidx/preference/b;->h()Landroidx/preference/EditTextPreference;
 | 
						|
 | 
						|
    move-result-object p1
 | 
						|
 | 
						|
    invoke-virtual {p1}, Landroidx/preference/EditTextPreference;->A1()Ljava/lang/String;
 | 
						|
 | 
						|
    move-result-object p1
 | 
						|
 | 
						|
    iput-object p1, p0, Landroidx/preference/b;->V0:Ljava/lang/CharSequence;
 | 
						|
 | 
						|
    goto :goto_0
 | 
						|
 | 
						|
    :cond_0
 | 
						|
    const-string v0, "EditTextPreferenceDialogFragment.text"
 | 
						|
 | 
						|
    .line 3
 | 
						|
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
 | 
						|
 | 
						|
    move-result-object p1
 | 
						|
 | 
						|
    iput-object p1, p0, Landroidx/preference/b;->V0:Ljava/lang/CharSequence;
 | 
						|
 | 
						|
    :goto_0
 | 
						|
    return-void
 | 
						|
.end method
 | 
						|
 | 
						|
.method public onSaveInstanceState(Landroid/os/Bundle;)V
 | 
						|
    .locals 2
 | 
						|
    .param p1    # Landroid/os/Bundle;
 | 
						|
        .annotation build Landroidx/annotation/NonNull;
 | 
						|
        .end annotation
 | 
						|
    .end param
 | 
						|
 | 
						|
    .line 1
 | 
						|
    invoke-super {p0, p1}, Landroidx/preference/j;->onSaveInstanceState(Landroid/os/Bundle;)V
 | 
						|
 | 
						|
    .line 2
 | 
						|
    iget-object v0, p0, Landroidx/preference/b;->V0:Ljava/lang/CharSequence;
 | 
						|
 | 
						|
    const-string v1, "EditTextPreferenceDialogFragment.text"
 | 
						|
 | 
						|
    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
 | 
						|
 | 
						|
    return-void
 | 
						|
.end method
 |