You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
771 lines
18 KiB
771 lines
18 KiB
2 years ago
|
.class public Lcom/afollestad/materialdialogs/internal/c;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "MDTintHelper.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation build Landroid/annotation/SuppressLint;
|
||
|
value = {
|
||
|
"PrivateResource"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private static a(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
||
|
.locals 7
|
||
|
.param p0 # Landroid/content/Context;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
const/4 v6, 0x2
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
.line 150
|
||
|
new-array v0, v1, [[I
|
||
|
|
||
|
.line 151
|
||
|
new-array v1, v1, [I
|
||
|
|
||
|
.line 153
|
||
|
new-array v2, v5, [I
|
||
|
|
||
|
const v3, -0x101009e
|
||
|
|
||
|
aput v3, v2, v4
|
||
|
|
||
|
aput-object v2, v0, v4
|
||
|
|
||
|
.line 154
|
||
|
sget v2, Lcom/afollestad/materialdialogs/R$attr;->colorControlNormal:I
|
||
|
|
||
|
invoke-static {p0, v2}, Lcom/afollestad/materialdialogs/a/a;->a(Landroid/content/Context;I)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
aput v2, v1, v4
|
||
|
|
||
|
.line 156
|
||
|
new-array v2, v6, [I
|
||
|
|
||
|
fill-array-data v2, :array_0
|
||
|
|
||
|
aput-object v2, v0, v5
|
||
|
|
||
|
.line 157
|
||
|
sget v2, Lcom/afollestad/materialdialogs/R$attr;->colorControlNormal:I
|
||
|
|
||
|
invoke-static {p0, v2}, Lcom/afollestad/materialdialogs/a/a;->a(Landroid/content/Context;I)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
aput v2, v1, v5
|
||
|
|
||
|
.line 159
|
||
|
new-array v2, v4, [I
|
||
|
|
||
|
aput-object v2, v0, v6
|
||
|
|
||
|
.line 160
|
||
|
aput p1, v1, v6
|
||
|
|
||
|
.line 161
|
||
|
new-instance v2, Landroid/content/res/ColorStateList;
|
||
|
|
||
|
invoke-direct {v2, v0, v1}, Landroid/content/res/ColorStateList;-><init>([[I[I)V
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
.line 156
|
||
|
:array_0
|
||
|
.array-data 4
|
||
|
-0x10100a7
|
||
|
-0x101009c
|
||
|
.end array-data
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Landroid/widget/CheckBox;I)V
|
||
|
.locals 10
|
||
|
.param p0 # Landroid/widget/CheckBox;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
const/4 v4, 0x4
|
||
|
|
||
|
const/4 v9, 0x3
|
||
|
|
||
|
const/4 v8, 0x1
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v6, 0x2
|
||
|
|
||
|
.line 75
|
||
|
invoke-virtual {p0}, Landroid/widget/CheckBox;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/afollestad/materialdialogs/a/a;->a(Landroid/content/Context;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 76
|
||
|
new-instance v1, Landroid/content/res/ColorStateList;
|
||
|
|
||
|
new-array v2, v4, [[I
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_0
|
||
|
|
||
|
aput-object v3, v2, v7
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_1
|
||
|
|
||
|
aput-object v3, v2, v8
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_2
|
||
|
|
||
|
aput-object v3, v2, v6
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_3
|
||
|
|
||
|
aput-object v3, v2, v9
|
||
|
|
||
|
new-array v3, v4, [I
|
||
|
|
||
|
.line 85
|
||
|
invoke-virtual {p0}, Landroid/widget/CheckBox;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
sget v5, Lcom/afollestad/materialdialogs/R$attr;->colorControlNormal:I
|
||
|
|
||
|
invoke-static {v4, v5}, Lcom/afollestad/materialdialogs/a/a;->a(Landroid/content/Context;I)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
aput v4, v3, v7
|
||
|
|
||
|
aput p1, v3, v8
|
||
|
|
||
|
aput v0, v3, v6
|
||
|
|
||
|
aput v0, v3, v9
|
||
|
|
||
|
invoke-direct {v1, v2, v3}, Landroid/content/res/ColorStateList;-><init>([[I[I)V
|
||
|
|
||
|
.line 90
|
||
|
invoke-static {p0, v1}, Lcom/afollestad/materialdialogs/internal/c;->a(Landroid/widget/CheckBox;Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 91
|
||
|
return-void
|
||
|
|
||
|
.line 76
|
||
|
:array_0
|
||
|
.array-data 4
|
||
|
0x101009e
|
||
|
-0x10100a0
|
||
|
.end array-data
|
||
|
|
||
|
:array_1
|
||
|
.array-data 4
|
||
|
0x101009e
|
||
|
0x10100a0
|
||
|
.end array-data
|
||
|
|
||
|
:array_2
|
||
|
.array-data 4
|
||
|
-0x101009e
|
||
|
-0x10100a0
|
||
|
.end array-data
|
||
|
|
||
|
:array_3
|
||
|
.array-data 4
|
||
|
-0x101009e
|
||
|
0x10100a0
|
||
|
.end array-data
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Landroid/widget/CheckBox;Landroid/content/res/ColorStateList;)V
|
||
|
.locals 2
|
||
|
.param p0 # Landroid/widget/CheckBox;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # Landroid/content/res/ColorStateList;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 63
|
||
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v1, 0x15
|
||
|
|
||
|
if-lt v0, v1, :cond_0
|
||
|
|
||
|
.line 64
|
||
|
invoke-virtual {p0, p1}, Landroid/widget/CheckBox;->setButtonTintList(Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 72
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 67
|
||
|
:cond_0
|
||
|
invoke-virtual {p0}, Landroid/widget/CheckBox;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget v1, Lcom/afollestad/materialdialogs/R$drawable;->abc_btn_check_material:I
|
||
|
|
||
|
invoke-static {v0, v1}, Landroid/support/v4/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 68
|
||
|
invoke-static {v0}, Landroid/support/v4/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 69
|
||
|
invoke-static {v0, p1}, Landroid/support/v4/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 70
|
||
|
invoke-virtual {p0, v0}, Landroid/widget/CheckBox;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Landroid/widget/EditText;I)V
|
||
|
.locals 3
|
||
|
.param p0 # Landroid/widget/EditText;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 165
|
||
|
.line 166
|
||
|
invoke-virtual {p0}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0, p1}, Lcom/afollestad/materialdialogs/internal/c;->a(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 167
|
||
|
instance-of v0, p0, Landroid/support/v7/widget/AppCompatEditText;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
.line 169
|
||
|
check-cast v0, Landroid/support/v7/widget/AppCompatEditText;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/AppCompatEditText;->setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 173
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
invoke-static {p0, p1}, Lcom/afollestad/materialdialogs/internal/c;->b(Landroid/widget/EditText;I)V
|
||
|
|
||
|
.line 174
|
||
|
return-void
|
||
|
|
||
|
.line 170
|
||
|
:cond_1
|
||
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v2, 0x15
|
||
|
|
||
|
if-lt v0, v2, :cond_0
|
||
|
|
||
|
.line 171
|
||
|
invoke-virtual {p0, v1}, Landroid/widget/EditText;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Landroid/widget/ProgressBar;I)V
|
||
|
.locals 1
|
||
|
.param p0 # Landroid/widget/ProgressBar;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 122
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-static {p0, p1, v0}, Lcom/afollestad/materialdialogs/internal/c;->a(Landroid/widget/ProgressBar;IZ)V
|
||
|
|
||
|
.line 123
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static a(Landroid/widget/ProgressBar;IZ)V
|
||
|
.locals 3
|
||
|
.param p0 # Landroid/widget/ProgressBar;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 127
|
||
|
invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 128
|
||
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v2, 0x15
|
||
|
|
||
|
if-lt v1, v2, :cond_1
|
||
|
|
||
|
.line 129
|
||
|
invoke-virtual {p0, v0}, Landroid/widget/ProgressBar;->setProgressTintList(Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 130
|
||
|
invoke-virtual {p0, v0}, Landroid/widget/ProgressBar;->setSecondaryProgressTintList(Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 131
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
.line 132
|
||
|
invoke-virtual {p0, v0}, Landroid/widget/ProgressBar;->setIndeterminateTintList(Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 146
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 135
|
||
|
:cond_1
|
||
|
sget-object v0, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
||
|
|
||
|
.line 136
|
||
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v2, 0xa
|
||
|
|
||
|
if-gt v1, v2, :cond_2
|
||
|
|
||
|
.line 137
|
||
|
sget-object v0, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;
|
||
|
|
||
|
.line 139
|
||
|
:cond_2
|
||
|
if-nez p2, :cond_3
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/widget/ProgressBar;->getIndeterminateDrawable()Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
.line 140
|
||
|
invoke-virtual {p0}, Landroid/widget/ProgressBar;->getIndeterminateDrawable()Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p1, v0}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
|
||
|
|
||
|
.line 142
|
||
|
:cond_3
|
||
|
invoke-virtual {p0}, Landroid/widget/ProgressBar;->getProgressDrawable()Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
.line 143
|
||
|
invoke-virtual {p0}, Landroid/widget/ProgressBar;->getProgressDrawable()Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p1, v0}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Landroid/widget/RadioButton;I)V
|
||
|
.locals 10
|
||
|
.param p0 # Landroid/widget/RadioButton;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
const/4 v4, 0x4
|
||
|
|
||
|
const/4 v9, 0x3
|
||
|
|
||
|
const/4 v8, 0x1
|
||
|
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
const/4 v6, 0x2
|
||
|
|
||
|
.line 44
|
||
|
invoke-virtual {p0}, Landroid/widget/RadioButton;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Lcom/afollestad/materialdialogs/a/a;->a(Landroid/content/Context;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 45
|
||
|
new-instance v1, Landroid/content/res/ColorStateList;
|
||
|
|
||
|
new-array v2, v4, [[I
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_0
|
||
|
|
||
|
aput-object v3, v2, v7
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_1
|
||
|
|
||
|
aput-object v3, v2, v8
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_2
|
||
|
|
||
|
aput-object v3, v2, v6
|
||
|
|
||
|
new-array v3, v6, [I
|
||
|
|
||
|
fill-array-data v3, :array_3
|
||
|
|
||
|
aput-object v3, v2, v9
|
||
|
|
||
|
new-array v3, v4, [I
|
||
|
|
||
|
.line 54
|
||
|
invoke-virtual {p0}, Landroid/widget/RadioButton;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
sget v5, Lcom/afollestad/materialdialogs/R$attr;->colorControlNormal:I
|
||
|
|
||
|
invoke-static {v4, v5}, Lcom/afollestad/materialdialogs/a/a;->a(Landroid/content/Context;I)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
aput v4, v3, v7
|
||
|
|
||
|
aput p1, v3, v8
|
||
|
|
||
|
aput v0, v3, v6
|
||
|
|
||
|
aput v0, v3, v9
|
||
|
|
||
|
invoke-direct {v1, v2, v3}, Landroid/content/res/ColorStateList;-><init>([[I[I)V
|
||
|
|
||
|
.line 59
|
||
|
invoke-static {p0, v1}, Lcom/afollestad/materialdialogs/internal/c;->a(Landroid/widget/RadioButton;Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 60
|
||
|
return-void
|
||
|
|
||
|
.line 45
|
||
|
:array_0
|
||
|
.array-data 4
|
||
|
0x101009e
|
||
|
-0x10100a0
|
||
|
.end array-data
|
||
|
|
||
|
:array_1
|
||
|
.array-data 4
|
||
|
0x101009e
|
||
|
0x10100a0
|
||
|
.end array-data
|
||
|
|
||
|
:array_2
|
||
|
.array-data 4
|
||
|
-0x101009e
|
||
|
-0x10100a0
|
||
|
.end array-data
|
||
|
|
||
|
:array_3
|
||
|
.array-data 4
|
||
|
-0x101009e
|
||
|
0x10100a0
|
||
|
.end array-data
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Landroid/widget/RadioButton;Landroid/content/res/ColorStateList;)V
|
||
|
.locals 2
|
||
|
.param p0 # Landroid/widget/RadioButton;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # Landroid/content/res/ColorStateList;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 32
|
||
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v1, 0x15
|
||
|
|
||
|
if-lt v0, v1, :cond_0
|
||
|
|
||
|
.line 33
|
||
|
invoke-virtual {p0, p1}, Landroid/widget/RadioButton;->setButtonTintList(Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 41
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 36
|
||
|
:cond_0
|
||
|
invoke-virtual {p0}, Landroid/widget/RadioButton;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sget v1, Lcom/afollestad/materialdialogs/R$drawable;->abc_btn_radio_material:I
|
||
|
|
||
|
invoke-static {v0, v1}, Landroid/support/v4/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 37
|
||
|
invoke-static {v0}, Landroid/support/v4/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 38
|
||
|
invoke-static {v0, p1}, Landroid/support/v4/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
|
||
|
|
||
|
.line 39
|
||
|
invoke-virtual {p0, v0}, Landroid/widget/RadioButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method private static b(Landroid/widget/EditText;I)V
|
||
|
.locals 6
|
||
|
.param p0 # Landroid/widget/EditText;
|
||
|
.annotation build Landroid/support/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p1 # I
|
||
|
.annotation build Landroid/support/annotation/ColorInt;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
.line 178
|
||
|
:try_start_0
|
||
|
const-class v0, Landroid/widget/TextView;
|
||
|
|
||
|
const-string v1, "mCursorDrawableRes"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 179
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
||
|
|
||
|
.line 180
|
||
|
invoke-virtual {v0, p0}, Ljava/lang/reflect/Field;->getInt(Ljava/lang/Object;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
.line 181
|
||
|
const-class v1, Landroid/widget/TextView;
|
||
|
|
||
|
const-string v2, "mEditor"
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 182
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
||
|
|
||
|
.line 183
|
||
|
invoke-virtual {v1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 184
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.line 185
|
||
|
const-string v3, "mCursorDrawable"
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.line 186
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
||
|
|
||
|
.line 187
|
||
|
const/4 v3, 0x2
|
||
|
|
||
|
new-array v3, v3, [Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
.line 188
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-static {v5, v0}, Landroid/support/v4/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
aput-object v5, v3, v4
|
||
|
|
||
|
.line 189
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
invoke-static {v5, v0}, Landroid/support/v4/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
aput-object v0, v3, v4
|
||
|
|
||
|
.line 190
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
aget-object v0, v3, v0
|
||
|
|
||
|
sget-object v4, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
||
|
|
||
|
invoke-virtual {v0, p1, v4}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
|
||
|
|
||
|
.line 191
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
aget-object v0, v3, v0
|
||
|
|
||
|
sget-object v4, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
||
|
|
||
|
invoke-virtual {v0, p1, v4}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V
|
||
|
|
||
|
.line 192
|
||
|
invoke-virtual {v2, v1, v3}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
||
|
|
||
|
.line 199
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 193
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
.line 194
|
||
|
const-string v1, "MDTintHelper"
|
||
|
|
||
|
new-instance v2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v3, "Device issue with cursor tinting: "
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/NoSuchFieldException;->getMessage()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
||
|
|
||
|
.line 195
|
||
|
invoke-virtual {v0}, Ljava/lang/NoSuchFieldException;->printStackTrace()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 196
|
||
|
:catch_1
|
||
|
move-exception v0
|
||
|
|
||
|
.line 197
|
||
|
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|