757 lines
17 KiB
Smali
757 lines
17 KiB
Smali
.class public Landroidx/preference/SeekBarPreference;
|
|
.super Landroidx/preference/Preference;
|
|
.source "SeekBarPreference.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/preference/SeekBarPreference$SavedState;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final K1:Ljava/lang/String; = "SeekBarPreference"
|
|
|
|
|
|
# instance fields
|
|
.field public A1:I
|
|
|
|
.field public B1:I
|
|
|
|
.field public C1:Z
|
|
|
|
.field public D1:Landroid/widget/SeekBar;
|
|
|
|
.field public E1:Landroid/widget/TextView;
|
|
|
|
.field public F1:Z
|
|
|
|
.field public G1:Z
|
|
|
|
.field public H1:Z
|
|
|
|
.field public I1:Landroid/widget/SeekBar$OnSeekBarChangeListener;
|
|
|
|
.field public J1:Landroid/view/View$OnKeyListener;
|
|
|
|
.field public y1:I
|
|
|
|
.field public z1:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 14
|
|
invoke-direct {p0, p1, v0}, Landroidx/preference/SeekBarPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
.line 13
|
|
sget v0, Landroidx/preference/R$attr;->seekBarPreferenceStyle:I
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/preference/SeekBarPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 12
|
|
invoke-direct {p0, p1, p2, p3, v0}, Landroidx/preference/SeekBarPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/preference/Preference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/preference/SeekBarPreference$a;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/preference/SeekBarPreference$a;-><init>(Landroidx/preference/SeekBarPreference;)V
|
|
|
|
iput-object v0, p0, Landroidx/preference/SeekBarPreference;->I1:Landroid/widget/SeekBar$OnSeekBarChangeListener;
|
|
|
|
.line 3
|
|
new-instance v0, Landroidx/preference/SeekBarPreference$b;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/preference/SeekBarPreference$b;-><init>(Landroidx/preference/SeekBarPreference;)V
|
|
|
|
iput-object v0, p0, Landroidx/preference/SeekBarPreference;->J1:Landroid/view/View$OnKeyListener;
|
|
|
|
.line 4
|
|
sget-object v0, Landroidx/preference/R$styleable;->SeekBarPreference:[I
|
|
|
|
invoke-virtual {p1, p2, v0, p3, p4}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
sget p2, Landroidx/preference/R$styleable;->SeekBarPreference_min:I
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
.line 6
|
|
sget p2, Landroidx/preference/R$styleable;->SeekBarPreference_android_max:I
|
|
|
|
const/16 p4, 0x64
|
|
|
|
invoke-virtual {p1, p2, p4}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/preference/SeekBarPreference;->q1(I)V
|
|
|
|
.line 7
|
|
sget p2, Landroidx/preference/R$styleable;->SeekBarPreference_seekBarIncrement:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/preference/SeekBarPreference;->s1(I)V
|
|
|
|
.line 8
|
|
sget p2, Landroidx/preference/R$styleable;->SeekBarPreference_adjustable:I
|
|
|
|
const/4 p4, 0x1
|
|
|
|
invoke-virtual {p1, p2, p4}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
iput-boolean p2, p0, Landroidx/preference/SeekBarPreference;->F1:Z
|
|
|
|
.line 9
|
|
sget p2, Landroidx/preference/R$styleable;->SeekBarPreference_showSeekBarValue:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
iput-boolean p2, p0, Landroidx/preference/SeekBarPreference;->G1:Z
|
|
|
|
.line 10
|
|
sget p2, Landroidx/preference/R$styleable;->SeekBarPreference_updatesContinuously:I
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p2
|
|
|
|
iput-boolean p2, p0, Landroidx/preference/SeekBarPreference;->H1:Z
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public Z(Landroidx/preference/s;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/preference/Preference;->Z(Landroidx/preference/s;)V
|
|
|
|
.line 2
|
|
iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$a0;->itemView:Landroid/view/View;
|
|
|
|
iget-object v1, p0, Landroidx/preference/SeekBarPreference;->J1:Landroid/view/View$OnKeyListener;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V
|
|
|
|
.line 3
|
|
sget v0, Landroidx/preference/R$id;->seekbar:I
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/preference/s;->d(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/SeekBar;
|
|
|
|
iput-object v0, p0, Landroidx/preference/SeekBarPreference;->D1:Landroid/widget/SeekBar;
|
|
|
|
.line 4
|
|
sget v0, Landroidx/preference/R$id;->seekbar_value:I
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/preference/s;->d(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
iput-object p1, p0, Landroidx/preference/SeekBarPreference;->E1:Landroid/widget/TextView;
|
|
|
|
.line 5
|
|
iget-boolean v0, p0, Landroidx/preference/SeekBarPreference;->G1:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v0, 0x8
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 8
|
|
iput-object p1, p0, Landroidx/preference/SeekBarPreference;->E1:Landroid/widget/TextView;
|
|
|
|
.line 9
|
|
:goto_0
|
|
iget-object p1, p0, Landroidx/preference/SeekBarPreference;->D1:Landroid/widget/SeekBar;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const-string p1, "SeekBarPreference"
|
|
|
|
const-string v0, "SeekBar view is null in onBindViewHolder."
|
|
|
|
.line 10
|
|
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return-void
|
|
|
|
.line 11
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/preference/SeekBarPreference;->I1:Landroid/widget/SeekBar$OnSeekBarChangeListener;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V
|
|
|
|
.line 12
|
|
iget-object p1, p0, Landroidx/preference/SeekBarPreference;->D1:Landroid/widget/SeekBar;
|
|
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
iget v1, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/SeekBar;->setMax(I)V
|
|
|
|
.line 13
|
|
iget p1, p0, Landroidx/preference/SeekBarPreference;->B1:I
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 14
|
|
iget-object v0, p0, Landroidx/preference/SeekBarPreference;->D1:Landroid/widget/SeekBar;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 15
|
|
:cond_2
|
|
iget-object p1, p0, Landroidx/preference/SeekBarPreference;->D1:Landroid/widget/SeekBar;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/SeekBar;->getKeyProgressIncrement()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/preference/SeekBarPreference;->B1:I
|
|
|
|
.line 16
|
|
:goto_1
|
|
iget-object p1, p0, Landroidx/preference/SeekBarPreference;->D1:Landroid/widget/SeekBar;
|
|
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
iget v1, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/SeekBar;->setProgress(I)V
|
|
|
|
.line 17
|
|
iget p1, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/SeekBarPreference;->y1(I)V
|
|
|
|
.line 18
|
|
iget-object p1, p0, Landroidx/preference/SeekBarPreference;->D1:Landroid/widget/SeekBar;
|
|
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->M()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/SeekBar;->setEnabled(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d0(Landroid/content/res/TypedArray;I)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public h0(Landroid/os/Parcelable;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v1, Landroidx/preference/SeekBarPreference$SavedState;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-super {p0, p1}, Landroidx/preference/Preference;->h0(Landroid/os/Parcelable;)V
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
check-cast p1, Landroidx/preference/SeekBarPreference$SavedState;
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Landroid/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-super {p0, v0}, Landroidx/preference/Preference;->h0(Landroid/os/Parcelable;)V
|
|
|
|
.line 5
|
|
iget v0, p1, Landroidx/preference/SeekBarPreference$SavedState;->a:I
|
|
|
|
iput v0, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
.line 6
|
|
iget v0, p1, Landroidx/preference/SeekBarPreference$SavedState;->b:I
|
|
|
|
iput v0, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
.line 7
|
|
iget p1, p1, Landroidx/preference/SeekBarPreference$SavedState;->c:I
|
|
|
|
iput p1, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public i0()Landroid/os/Parcelable;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroidx/preference/Preference;->i0()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->O()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance v1, Landroidx/preference/SeekBarPreference$SavedState;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/preference/SeekBarPreference$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 4
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
iput v0, v1, Landroidx/preference/SeekBarPreference$SavedState;->a:I
|
|
|
|
.line 5
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
iput v0, v1, Landroidx/preference/SeekBarPreference$SavedState;->b:I
|
|
|
|
.line 6
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
iput v0, v1, Landroidx/preference/SeekBarPreference$SavedState;->c:I
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public i1()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public j0(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 1
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
:cond_0
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->y(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/SeekBarPreference;->v1(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public j1()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final k1()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->B1:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public l1()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/preference/SeekBarPreference;->G1:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public m1()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/preference/SeekBarPreference;->H1:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public n1()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public o1()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/preference/SeekBarPreference;->F1:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public p1(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Landroidx/preference/SeekBarPreference;->F1:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final q1(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
move p1, v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
.line 3
|
|
iput p1, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public r1(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
if-le p1, v0, :cond_0
|
|
|
|
move p1, v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
.line 3
|
|
iput p1, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final s1(I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->B1:I
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 2
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
iget v1, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/preference/SeekBarPreference;->B1:I
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public t1(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Landroidx/preference/SeekBarPreference;->G1:Z
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public u1(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Landroidx/preference/SeekBarPreference;->H1:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public v1(I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, v0}, Landroidx/preference/SeekBarPreference;->w1(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final w1(IZ)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
move p1, v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->A1:I
|
|
|
|
if-le p1, v0, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
.line 3
|
|
:cond_1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
.line 4
|
|
iput p1, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Landroidx/preference/SeekBarPreference;->y1(I)V
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->q0(I)Z
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public x1(Landroid/widget/SeekBar;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
invoke-virtual {p1}, Landroid/widget/SeekBar;->getProgress()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
.line 2
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
if-eq v1, v0, :cond_1
|
|
|
|
.line 3
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/preference/Preference;->b(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v1, p1}, Landroidx/preference/SeekBarPreference;->w1(IZ)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_0
|
|
iget v0, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
iget v1, p0, Landroidx/preference/SeekBarPreference;->z1:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/SeekBar;->setProgress(I)V
|
|
|
|
.line 6
|
|
iget p1, p0, Landroidx/preference/SeekBarPreference;->y1:I
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/SeekBarPreference;->y1(I)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public y1(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/SeekBarPreference;->E1:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|