a.smali

.class public final Lcom/singbox/ui/widget/fitsides/a;
.super Ljava/lang/Object;
.source "SourceFile"


# instance fields
.field a:Z

.field b:Z

.field c:Z

.field d:Z

.field e:Z

.field f:Z

.field g:Z

.field h:Z

.field private i:Landroid/view/View;


# direct methods
.method private constructor <init>()V
    .registers 1

    .line 36
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(Landroid/view/View;Landroid/content/Context;Landroid/util/AttributeSet;)Lcom/singbox/ui/widget/fitsides/a;
    .registers 5

    .line 41
    new-instance v0, Lcom/singbox/ui/widget/fitsides/a;

    invoke-direct {v0}, Lcom/singbox/ui/widget/fitsides/a;-><init>()V

    .line 42
    iput-object p0, v0, Lcom/singbox/ui/widget/fitsides/a;->i:Landroid/view/View;

    const/4 p0, 0x0

    if-nez p2, :cond_1b

    .line 44
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->a:Z

    .line 45
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->b:Z

    .line 46
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->c:Z

    .line 47
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->d:Z

    .line 48
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->e:Z

    .line 49
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->f:Z

    .line 50
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->g:Z

    .line 51
    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->h:Z

    goto :goto_64

    .line 53
    :cond_1b
    sget-object v1, Lcom/singbox/common/a$i;->FitSidesConsumer:[I

    invoke-virtual {p1, p2, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object p1

    .line 54
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_fitTop:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, v0, Lcom/singbox/ui/widget/fitsides/a;->a:Z

    .line 55
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_fitBottom:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, v0, Lcom/singbox/ui/widget/fitsides/a;->b:Z

    .line 56
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_fitLeft:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, v0, Lcom/singbox/ui/widget/fitsides/a;->c:Z

    .line 57
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_fitRight:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, v0, Lcom/singbox/ui/widget/fitsides/a;->d:Z

    .line 58
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_topFitConsumed:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, v0, Lcom/singbox/ui/widget/fitsides/a;->e:Z

    .line 59
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_bottomFitConsumed:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, v0, Lcom/singbox/ui/widget/fitsides/a;->f:Z

    .line 60
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_leftFitConsumed:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, v0, Lcom/singbox/ui/widget/fitsides/a;->g:Z

    .line 61
    sget p2, Lcom/singbox/common/a$i;->FitSidesConsumer_rightFitConsumed:I

    invoke-virtual {p1, p2, p0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p0

    iput-boolean p0, v0, Lcom/singbox/ui/widget/fitsides/a;->h:Z

    .line 62
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    :goto_64
    return-object v0
.end method


# virtual methods
.method final a()V
    .registers 3

    .line 140
    iget-object v0, p0, Lcom/singbox/ui/widget/fitsides/a;->i:Landroid/view/View;

    if-eqz v0, :cond_1b

    .line 141
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x14

    if-lt v0, v1, :cond_10

    .line 142
    iget-object v0, p0, Lcom/singbox/ui/widget/fitsides/a;->i:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestApplyInsets()V

    return-void

    .line 143
    :cond_10
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_1b

    .line 144
    iget-object v0, p0, Lcom/singbox/ui/widget/fitsides/a;->i:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestFitSystemWindows()V

    :cond_1b
    return-void
.end method

.method final a(IIII)Z
    .registers 9

    .line 204
    iget-boolean v0, p0, Lcom/singbox/ui/widget/fitsides/a;->a:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_6

    goto :goto_7

    :cond_6
    const/4 p2, 0x0

    .line 208
    :goto_7
    iget-boolean v2, p0, Lcom/singbox/ui/widget/fitsides/a;->b:Z

    const/4 v3, 0x1

    if-eqz v2, :cond_e

    const/4 v0, 0x1

    goto :goto_f

    :cond_e
    const/4 p4, 0x0

    .line 212
    :goto_f
    iget-boolean v2, p0, Lcom/singbox/ui/widget/fitsides/a;->c:Z

    if-eqz v2, :cond_15

    const/4 v0, 0x1

    goto :goto_16

    :cond_15
    const/4 p1, 0x0

    .line 216
    :goto_16
    iget-boolean v2, p0, Lcom/singbox/ui/widget/fitsides/a;->d:Z

    if-eqz v2, :cond_1b

    goto :goto_1d

    :cond_1b
    move v3, v0

    const/4 p3, 0x0

    :goto_1d
    if-eqz v3, :cond_24

    .line 221
    iget-object v0, p0, Lcom/singbox/ui/widget/fitsides/a;->i:Landroid/view/View;

    invoke-virtual {v0, p1, p2, p3, p4}, Landroid/view/View;->setPadding(IIII)V

    :cond_24
    return v3
.end method