ie.smali

.class Ldxoptimizer/ie;
.super Ljava/lang/Object;
.source "CompoundButtonCompatGingerbread.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x9
.end annotation


# static fields
.field private static a:Ljava/lang/reflect/Field;

.field private static b:Z


# direct methods
.method static a(Landroid/widget/CompoundButton;)Landroid/graphics/drawable/Drawable;
    .registers 6

    .prologue
    const/4 v1, 0x0

    const/4 v4, 0x1

    .line 65
    sget-boolean v0, Ldxoptimizer/ie;->b:Z

    if-nez v0, :cond_18

    .line 67
    :try_start_6
    const-class v0, Landroid/widget/CompoundButton;

    const-string v2, "mButtonDrawable"

    invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v0

    sput-object v0, Ldxoptimizer/ie;->a:Ljava/lang/reflect/Field;

    .line 68
    sget-object v0, Ldxoptimizer/ie;->a:Ljava/lang/reflect/Field;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/reflect/Field;->setAccessible(Z)V
    :try_end_16
    .catch Ljava/lang/NoSuchFieldException; {:try_start_6 .. :try_end_16} :catch_25

    .line 72
    :goto_16
    sput-boolean v4, Ldxoptimizer/ie;->b:Z

    .line 75
    :cond_18
    sget-object v0, Ldxoptimizer/ie;->a:Ljava/lang/reflect/Field;

    if-eqz v0, :cond_38

    .line 77
    :try_start_1c
    sget-object v0, Ldxoptimizer/ie;->a:Ljava/lang/reflect/Field;

    invoke-virtual {v0, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/Drawable;
    :try_end_24
    .catch Ljava/lang/IllegalAccessException; {:try_start_1c .. :try_end_24} :catch_2e

    .line 83
    :goto_24
    return-object v0

    .line 69
    :catch_25
    move-exception v0

    .line 70
    const-string v2, "CompoundButtonCompatGingerbread"

    const-string v3, "Failed to retrieve mButtonDrawable field"

    invoke-static {v2, v3, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_16

    .line 78
    :catch_2e
    move-exception v0

    .line 79
    const-string v2, "CompoundButtonCompatGingerbread"

    const-string v3, "Failed to get button drawable via reflection"

    invoke-static {v2, v3, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 80
    sput-object v1, Ldxoptimizer/ie;->a:Ljava/lang/reflect/Field;

    :cond_38
    move-object v0, v1

    .line 83
    goto :goto_24
.end method

.method static a(Landroid/widget/CompoundButton;Landroid/content/res/ColorStateList;)V
    .registers 3

    .prologue
    .line 39
    instance-of v0, p0, Ldxoptimizer/jb;

    if-eqz v0, :cond_9

    .line 40
    check-cast p0, Ldxoptimizer/jb;

    invoke-interface {p0, p1}, Ldxoptimizer/jb;->setSupportButtonTintList(Landroid/content/res/ColorStateList;)V

    .line 42
    :cond_9
    return-void
.end method

.method static a(Landroid/widget/CompoundButton;Landroid/graphics/PorterDuff$Mode;)V
    .registers 3

    .prologue
    .line 52
    instance-of v0, p0, Ldxoptimizer/jb;

    if-eqz v0, :cond_9

    .line 53
    check-cast p0, Ldxoptimizer/jb;

    invoke-interface {p0, p1}, Ldxoptimizer/jb;->setSupportButtonTintMode(Landroid/graphics/PorterDuff$Mode;)V

    .line 55
    :cond_9
    return-void
.end method