SwipeBack.smali

.class public abstract Lcom/hannesdorfmann/swipeback/SwipeBack;
.super Landroid/view/ViewGroup;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/hannesdorfmann/swipeback/SwipeBack$c;,
        Lcom/hannesdorfmann/swipeback/SwipeBack$a;,
        Lcom/hannesdorfmann/swipeback/SwipeBack$b;
    }
.end annotation


# static fields
.field static final p:Z

.field protected static final q:Landroid/view/animation/Interpolator;


# instance fields
.field protected A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

.field protected B:I

.field protected C:Z

.field protected D:I

.field protected E:I

.field protected F:I

.field protected G:I

.field protected H:Z

.field protected I:I

.field protected J:Lcom/hannesdorfmann/swipeback/SwipeBack$a;

.field protected K:Z

.field protected final L:Landroid/graphics/Rect;

.field protected M:F

.field protected N:Z

.field protected O:Lcom/hannesdorfmann/swipeback/b/b;

.field private a:Z

.field private final b:Landroid/graphics/Rect;

.field private c:Landroid/view/View;

.field private d:I

.field private e:Lcom/hannesdorfmann/swipeback/SwipeBack$b;

.field private f:Lcom/hannesdorfmann/swipeback/SwipeBack$b;

.field private g:Landroid/app/Activity;

.field private h:Lcom/hannesdorfmann/swipeback/b;

.field private i:Lcom/hannesdorfmann/swipeback/b;

.field private final j:Landroid/view/ViewTreeObserver$OnScrollChangedListener;

.field protected r:Landroid/graphics/drawable/Drawable;

.field protected s:Z

.field protected t:I

.field protected u:Landroid/graphics/drawable/Drawable;

.field protected v:I

.field protected w:Landroid/view/View;

.field protected x:I

.field protected final y:Landroid/graphics/Rect;

.field protected z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;


# direct methods
.method static constructor <clinit>()V
    .registers 2

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

    const/16 v1, 0x15

    if-lt v0, v1, :cond_f

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

    const/16 v1, 0x18

    if-lt v0, v1, :cond_d

    goto :goto_f

    :cond_d
    const/4 v0, 0x0

    goto :goto_10

    :cond_f
    :goto_f
    const/4 v0, 0x1

    :goto_10
    sput-boolean v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->p:Z

    .line 180
    new-instance v0, Lcom/hannesdorfmann/swipeback/a/c;

    invoke-direct {v0}, Lcom/hannesdorfmann/swipeback/a/c;-><init>()V

    sput-object v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->q:Landroid/view/animation/Interpolator;

    return-void
.end method

.method constructor <init>(Landroid/app/Activity;)V
    .registers 2

    .line 654
    invoke-direct {p0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;-><init>(Landroid/content/Context;)V

    .line 656
    iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    const/4 p1, 0x1

    .line 657
    iput p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->d:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 3

    const/4 v0, 0x0

    .line 661
    invoke-direct {p0, p1, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4

    .line 665
    sget v0, Lcom/hannesdorfmann/swipeback/c$b;->swipeBackStyle:I

    invoke-direct {p0, p1, p2, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;-><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
    .registers 7

    .line 669
    invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 235
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->y:Landroid/graphics/Rect;

    .line 240
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->b:Landroid/graphics/Rect;

    const/4 v0, 0x1

    .line 271
    iput v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->d:I

    const/4 v1, 0x0

    .line 282
    iput v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->D:I

    const/4 v2, 0x2

    .line 310
    iput v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->G:I

    .line 315
    iput-boolean v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->H:Z

    const/16 v0, 0x1f4

    .line 325
    iput v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->I:I

    .line 340
    iput-boolean v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->K:Z

    .line 342
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    .line 1066
    new-instance v0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;

    invoke-direct {v0, p0}, Lcom/hannesdorfmann/swipeback/SwipeBack$2;-><init>(Lcom/hannesdorfmann/swipeback/SwipeBack;)V

    iput-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->j:Landroid/view/ViewTreeObserver$OnScrollChangedListener;

    .line 670
    invoke-virtual {p0, p1, p2, p3}, Lcom/hannesdorfmann/swipeback/SwipeBack;->a(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method static synthetic a(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/app/Activity;
    .registers 1

    .line 27
    iget-object p0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    return-object p0
.end method

.method public static a(Landroid/app/Activity;Lcom/hannesdorfmann/swipeback/b;)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 5

    .line 431
    sget-object v0, Lcom/hannesdorfmann/swipeback/SwipeBack$c;->BEHIND:Lcom/hannesdorfmann/swipeback/SwipeBack$c;

    .line 3467
    new-instance v1, Lcom/hannesdorfmann/swipeback/b/a;

    invoke-direct {v1}, Lcom/hannesdorfmann/swipeback/b/a;-><init>()V

    .line 3529
    sget-object v2, Lcom/hannesdorfmann/swipeback/SwipeBack$c;->OVERLAY:Lcom/hannesdorfmann/swipeback/SwipeBack$c;

    if-ne v0, v2, :cond_11

    .line 3530
    new-instance v0, Lcom/hannesdorfmann/swipeback/OverlaySwipeBack;

    invoke-direct {v0, p0}, Lcom/hannesdorfmann/swipeback/OverlaySwipeBack;-><init>(Landroid/app/Activity;)V

    goto :goto_16

    .line 3534
    :cond_11
    new-instance v0, Lcom/hannesdorfmann/swipeback/SlidingSwipeBack;

    invoke-direct {v0, p0}, Lcom/hannesdorfmann/swipeback/SlidingSwipeBack;-><init>(Landroid/app/Activity;)V

    :goto_16
    const/4 v2, 0x1

    .line 3541
    iput v2, v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->d:I

    .line 3542
    invoke-direct {v0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->setPosition(Lcom/hannesdorfmann/swipeback/b;)V

    .line 3543
    iput-object v1, v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->O:Lcom/hannesdorfmann/swipeback/b/b;

    .line 3546
    invoke-direct {v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->a()V

    .line 3502
    sget p1, Lcom/hannesdorfmann/swipeback/c$c;->sb__swipeBack:I

    invoke-virtual {v0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->setId(I)V

    .line 3644
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/view/ViewGroup;

    const/4 p1, 0x0

    .line 3645
    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewGroup;

    .line 3647
    invoke-virtual {p0}, Landroid/view/ViewGroup;->removeAllViews()V

    const/4 v1, -0x1

    .line 3648
    invoke-virtual {p0, v0, v1, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;II)V

    .line 3650
    iget-object p0, v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    invoke-virtual {p0, p1, v1}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-object v0
.end method

.method private a(Landroid/graphics/drawable/Drawable;)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 2

    .line 1197
    iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->u:Landroid/graphics/drawable/Drawable;

    const/4 p1, 0x1

    .line 1198
    iput-boolean p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->a:Z

    .line 1199
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->invalidate()V

    return-object p0
.end method

.method private a(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 5

    .line 1456
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->d:I

    if-eqz v0, :cond_e

    const/4 v1, 0x1

    if-eq v0, v1, :cond_8

    goto :goto_18

    .line 1469
    :cond_8
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    invoke-virtual {v0, p1, p2}, Landroid/app/Activity;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_18

    .line 1458
    :cond_e
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {v0}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->removeAllViews()V

    .line 1459
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {v0, p1, p2}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :goto_18
    return-object p0
.end method

.method private a()V
    .registers 2

    .line 569
    new-instance v0, Lcom/hannesdorfmann/swipeback/SwipeBack$1;

    invoke-direct {v0, p0}, Lcom/hannesdorfmann/swipeback/SwipeBack$1;-><init>(Lcom/hannesdorfmann/swipeback/SwipeBack;)V

    iput-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->e:Lcom/hannesdorfmann/swipeback/SwipeBack$b;

    return-void
.end method

.method static synthetic b(Lcom/hannesdorfmann/swipeback/SwipeBack;)Lcom/hannesdorfmann/swipeback/SwipeBack$b;
    .registers 1

    .line 27
    iget-object p0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->f:Lcom/hannesdorfmann/swipeback/SwipeBack$b;

    return-object p0
.end method

.method private b(Landroid/view/View;)V
    .registers 4

    .line 1404
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->O:Lcom/hannesdorfmann/swipeback/b/b;

    if-eqz v0, :cond_9

    .line 1405
    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    invoke-interface {v0, p0, v1, p1}, Lcom/hannesdorfmann/swipeback/b/b;->a(Lcom/hannesdorfmann/swipeback/SwipeBack;Landroid/app/Activity;Landroid/view/View;)V

    :cond_9
    return-void
.end method

.method static synthetic c(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/graphics/Rect;
    .registers 1

    .line 27
    iget-object p0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->b:Landroid/graphics/Rect;

    return-object p0
.end method

.method private i(I)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 7

    .line 1175
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getDividerOrientation()Landroid/graphics/drawable/GradientDrawable$Orientation;

    move-result-object v0

    const v1, 0xffffff

    and-int/2addr v1, p1

    .line 1178
    new-instance v2, Landroid/graphics/drawable/GradientDrawable;

    const/4 v3, 0x2

    new-array v3, v3, [I

    const/4 v4, 0x0

    aput p1, v3, v4

    const/4 p1, 0x1

    aput v1, v3, p1

    invoke-direct {v2, v0, v3}, Landroid/graphics/drawable/GradientDrawable;-><init>(Landroid/graphics/drawable/GradientDrawable$Orientation;[I)V

    .line 1184
    invoke-direct {p0, v2}, Lcom/hannesdorfmann/swipeback/SwipeBack;->a(Landroid/graphics/drawable/Drawable;)Lcom/hannesdorfmann/swipeback/SwipeBack;

    return-object p0
.end method

.method private setPosition(Lcom/hannesdorfmann/swipeback/b;)V
    .registers 2

    .line 855
    iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->h:Lcom/hannesdorfmann/swipeback/b;

    .line 856
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getPosition()Lcom/hannesdorfmann/swipeback/b;

    move-result-object p1

    iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->i:Lcom/hannesdorfmann/swipeback/b;

    return-void
.end method


# virtual methods
.method public abstract a(I)Lcom/hannesdorfmann/swipeback/SwipeBack;
.end method

.method public final a(Landroid/view/View;)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 4

    .line 1445
    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    const/4 v1, -0x1

    invoke-direct {v0, v1, v1}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-direct {p0, p1, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->a(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)Lcom/hannesdorfmann/swipeback/SwipeBack;

    return-object p0
.end method

.method public final a(Lcom/hannesdorfmann/swipeback/b/b;)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 2

    .line 1555
    iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->O:Lcom/hannesdorfmann/swipeback/b/b;

    .line 1556
    iget-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->c:Landroid/view/View;

    if-eqz p1, :cond_9

    .line 1557
    invoke-direct {p0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->b(Landroid/view/View;)V

    :cond_9
    return-object p0
.end method

.method public abstract a(Z)Lcom/hannesdorfmann/swipeback/SwipeBack;
.end method

.method protected a(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 9

    const/4 p3, 0x0

    .line 676
    invoke-virtual {p0, p3}, Lcom/hannesdorfmann/swipeback/SwipeBack;->setWillNotDraw(Z)V

    .line 677
    invoke-virtual {p0, p3}, Lcom/hannesdorfmann/swipeback/SwipeBack;->setFocusable(Z)V

    .line 679
    sget-object v0, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack:[I

    sget v1, Lcom/hannesdorfmann/swipeback/c$b;->swipeBackStyle:I

    sget v2, Lcom/hannesdorfmann/swipeback/c$d;->Widget_SwipeBack:I

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

    move-result-object p2

    .line 682
    sget v0, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbContentBackground:I

    invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 683
    sget v1, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbSwipeBackBackground:I

    invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 685
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbSwipeBackSize:I

    const/16 v3, 0x32

    invoke-virtual {p0, v3}, Lcom/hannesdorfmann/swipeback/SwipeBack;->e(I)I

    move-result v3

    invoke-virtual {p2, v2, v3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v2

    iput v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->B:I

    .line 687
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbDividerEnabled:I

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

    move-result v2

    iput-boolean v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->s:Z

    .line 690
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbDivider:I

    invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    iput-object v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->u:Landroid/graphics/drawable/Drawable;

    const/high16 v3, -0x1000000

    if-nez v2, :cond_48

    .line 693
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbDividerAsShadowColor:I

    invoke-virtual {p2, v2, v3}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v2

    iput v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->t:I

    goto :goto_4b

    :cond_48
    const/4 v2, 0x1

    .line 695
    iput-boolean v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->a:Z

    .line 698
    :goto_4b
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbDividerSize:I

    const/4 v4, 0x6

    .line 699
    invoke-virtual {p0, v4}, Lcom/hannesdorfmann/swipeback/SwipeBack;->e(I)I

    move-result v4

    .line 698
    invoke-virtual {p2, v2, v4}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v2

    iput v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->v:I

    .line 701
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbBezelSize:I

    const/16 v4, 0x18

    .line 702
    invoke-virtual {p0, v4}, Lcom/hannesdorfmann/swipeback/SwipeBack;->e(I)I

    move-result v4

    .line 701
    invoke-virtual {p2, v2, v4}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v2

    iput v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->E:I

    .line 705
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbMaxAnimationDuration:I

    const/16 v4, 0x1f4

    invoke-virtual {p2, v2, v4}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v2

    iput v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->I:I

    .line 709
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbDrawOverlay:I

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

    move-result v2

    iput-boolean v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->N:Z

    .line 711
    sget v2, Lcom/hannesdorfmann/swipeback/c$e;->SwipeBack_sbSwipeBackPosition:I

    invoke-virtual {p2, v2, p3}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result p3

    .line 712
    invoke-static {p3}, Lcom/hannesdorfmann/swipeback/b;->fromValue(I)Lcom/hannesdorfmann/swipeback/b;

    move-result-object p3

    invoke-direct {p0, p3}, Lcom/hannesdorfmann/swipeback/SwipeBack;->setPosition(Lcom/hannesdorfmann/swipeback/b;)V

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

    .line 718
    new-instance p2, Lcom/hannesdorfmann/swipeback/a;

    invoke-direct {p2, v3}, Lcom/hannesdorfmann/swipeback/a;-><init>(I)V

    iput-object p2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->r:Landroid/graphics/drawable/Drawable;

    .line 720
    new-instance p2, Lcom/hannesdorfmann/swipeback/NoClickThroughFrameLayout;

    invoke-direct {p2, p1}, Lcom/hannesdorfmann/swipeback/NoClickThroughFrameLayout;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    .line 721
    sget p3, Lcom/hannesdorfmann/swipeback/c$c;->sb__swipeBackContainer:I

    invoke-virtual {p2, p3}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setId(I)V

    .line 723
    new-instance p2, Lcom/hannesdorfmann/swipeback/NoClickThroughFrameLayout;

    invoke-direct {p2, p1}, Lcom/hannesdorfmann/swipeback/NoClickThroughFrameLayout;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    .line 724
    sget p1, Lcom/hannesdorfmann/swipeback/c$c;->sb__content:I

    invoke-virtual {p2, p1}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setId(I)V

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

    const/16 p2, 0x10

    if-ge p1, p2, :cond_b8

    .line 727
    iget-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {p1, v0}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 728
    iget-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {p1, v1}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_c2

    .line 730
    :cond_b8
    iget-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {p1, v0}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 731
    iget-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {p1, v1}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 734
    :goto_c2
    invoke-direct {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->a()V

    return-void
.end method

.method protected abstract a(Landroid/graphics/Canvas;)V
.end method

.method public abstract b(I)Lcom/hannesdorfmann/swipeback/SwipeBack;
.end method

.method public abstract b(Z)Lcom/hannesdorfmann/swipeback/SwipeBack;
.end method

.method public abstract c(I)Lcom/hannesdorfmann/swipeback/SwipeBack;
.end method

.method public final c(Z)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 2

    .line 1312
    iput-boolean p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->N:Z

    return-object p0
.end method

.method protected abstract d(I)V
.end method

.method protected dispatchDraw(Landroid/graphics/Canvas;)V
    .registers 4

    .line 792
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchDraw(Landroid/graphics/Canvas;)V

    .line 793
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->M:F

    float-to-int v0, v0

    .line 795
    iget-boolean v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->N:Z

    if-eqz v1, :cond_f

    if-eqz v0, :cond_f

    .line 796
    invoke-virtual {p0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->a(Landroid/graphics/Canvas;)V

    .line 798
    :cond_f
    iget-boolean v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->s:Z

    if-eqz v1, :cond_31

    if-nez v0, :cond_19

    iget-boolean v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->K:Z

    if-eqz v0, :cond_31

    .line 4809
    :cond_19
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->u:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_22

    .line 4810
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->t:I

    invoke-direct {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->i(I)Lcom/hannesdorfmann/swipeback/SwipeBack;

    .line 4813
    :cond_22
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->j()V

    .line 4814
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->u:Landroid/graphics/drawable/Drawable;

    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setBounds(Landroid/graphics/Rect;)V

    .line 4815
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->u:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    :cond_31
    return-void
.end method

.method public final e(I)I
    .registers 3

    .line 760
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    int-to-float p1, p1

    mul-float v0, v0, p1

    const/high16 p1, 0x3f000000    # 0.5f

    add-float/2addr v0, p1

    float-to-int p1, v0

    return p1
.end method

.method public final f(I)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 3

    .line 985
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {v0, p1}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setBackgroundColor(I)V

    return-object p0
.end method

.method protected fitSystemWindows(Landroid/graphics/Rect;)Z
    .registers 5

    .line 1598
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->d:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_13

    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->h:Lcom/hannesdorfmann/swipeback/b;

    sget-object v1, Lcom/hannesdorfmann/swipeback/b;->BOTTOM:Lcom/hannesdorfmann/swipeback/b;

    if-eq v0, v1, :cond_13

    .line 1599
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    iget v1, p1, Landroid/graphics/Rect;->top:I

    const/4 v2, 0x0

    invoke-virtual {v0, v2, v1, v2, v2}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->setPadding(IIII)V

    .line 1601
    :cond_13
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->fitSystemWindows(Landroid/graphics/Rect;)Z

    move-result p1

    return p1
.end method

.method public final g(I)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 5

    .line 1425
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->d:I

    const/4 v1, 0x1

    if-eqz v0, :cond_e

    if-eq v0, v1, :cond_8

    goto :goto_20

    .line 1432
    :cond_8
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    invoke-virtual {v0, p1}, Landroid/app/Activity;->setContentView(I)V

    goto :goto_20

    .line 1427
    :cond_e
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {v0}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->removeAllViews()V

    .line 1428
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iget-object v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {v0, p1, v2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    :goto_20
    return-object p0
.end method

.method public getContentContainer()Landroid/view/ViewGroup;
    .registers 2

    .line 1343
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->d:I

    if-nez v0, :cond_7

    .line 1344
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    return-object v0

    :cond_7
    const v0, 0x1020002

    .line 1346
    invoke-virtual {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    return-object v0
.end method

.method public getDivider()Landroid/graphics/drawable/Drawable;
    .registers 2

    .line 1219
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->u:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method protected getDividerOrientation()Landroid/graphics/drawable/GradientDrawable$Orientation;
    .registers 3

    .line 1149
    sget-object v0, Lcom/hannesdorfmann/swipeback/SwipeBack$3;->a:[I

    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getPosition()Lcom/hannesdorfmann/swipeback/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hannesdorfmann/swipeback/b;->ordinal()I

    move-result v1

    aget v0, v0, v1

    const/4 v1, 0x2

    if-eq v0, v1, :cond_1e

    const/4 v1, 0x3

    if-eq v0, v1, :cond_1b

    const/4 v1, 0x4

    if-eq v0, v1, :cond_18

    .line 1160
    sget-object v0, Landroid/graphics/drawable/GradientDrawable$Orientation;->RIGHT_LEFT:Landroid/graphics/drawable/GradientDrawable$Orientation;

    return-object v0

    .line 1157
    :cond_18
    sget-object v0, Landroid/graphics/drawable/GradientDrawable$Orientation;->TOP_BOTTOM:Landroid/graphics/drawable/GradientDrawable$Orientation;

    return-object v0

    .line 1154
    :cond_1b
    sget-object v0, Landroid/graphics/drawable/GradientDrawable$Orientation;->LEFT_RIGHT:Landroid/graphics/drawable/GradientDrawable$Orientation;

    return-object v0

    .line 1151
    :cond_1e
    sget-object v0, Landroid/graphics/drawable/GradientDrawable$Orientation;->BOTTOM_TOP:Landroid/graphics/drawable/GradientDrawable$Orientation;

    return-object v0
.end method

.method public getDrawOverlay()Z
    .registers 2

    .line 1322
    iget-boolean v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->N:Z

    return v0
.end method

.method public abstract getOffsetSwipeBackEnabled()Z
.end method

.method protected getPosition()Lcom/hannesdorfmann/swipeback/b;
    .registers 5

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

    const/16 v1, 0x11

    if-lt v0, v1, :cond_b

    .line 5050
    invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I

    move-result v0

    goto :goto_c

    :cond_b
    const/4 v0, 0x0

    .line 879
    :goto_c
    sget-object v1, Lcom/hannesdorfmann/swipeback/SwipeBack$3;->a:[I

    iget-object v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->h:Lcom/hannesdorfmann/swipeback/b;

    invoke-virtual {v2}, Lcom/hannesdorfmann/swipeback/b;->ordinal()I

    move-result v2

    aget v1, v1, v2

    const/4 v2, 0x5

    const/4 v3, 0x1

    if-eq v1, v2, :cond_28

    const/4 v2, 0x6

    if-eq v1, v2, :cond_20

    .line 895
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->h:Lcom/hannesdorfmann/swipeback/b;

    return-object v0

    :cond_20
    if-ne v0, v3, :cond_25

    .line 889
    sget-object v0, Lcom/hannesdorfmann/swipeback/b;->LEFT:Lcom/hannesdorfmann/swipeback/b;

    return-object v0

    .line 891
    :cond_25
    sget-object v0, Lcom/hannesdorfmann/swipeback/b;->RIGHT:Lcom/hannesdorfmann/swipeback/b;

    return-object v0

    :cond_28
    if-ne v0, v3, :cond_2d

    .line 882
    sget-object v0, Lcom/hannesdorfmann/swipeback/b;->RIGHT:Lcom/hannesdorfmann/swipeback/b;

    return-object v0

    .line 884
    :cond_2d
    sget-object v0, Lcom/hannesdorfmann/swipeback/b;->LEFT:Lcom/hannesdorfmann/swipeback/b;

    return-object v0
.end method

.method public getSize()I
    .registers 2

    .line 1059
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->B:I

    return v0
.end method

.method public getState()I
    .registers 2

    .line 1123
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->D:I

    return v0
.end method

.method public getSwipeBackContainer()Landroid/view/ViewGroup;
    .registers 2

    .line 1334
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    return-object v0
.end method

.method public getSwipeBackTransformer()Lcom/hannesdorfmann/swipeback/b/b;
    .registers 2

    .line 1568
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->O:Lcom/hannesdorfmann/swipeback/b/b;

    return-object v0
.end method

.method public getSwipeBackView()Landroid/view/View;
    .registers 2

    .line 1416
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->c:Landroid/view/View;

    return-object v0
.end method

.method public abstract getTouchBezelSize()I
.end method

.method public abstract getTouchMode()I
.end method

.method protected final h(I)Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 4

    .line 1477
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->D:I

    if-eq p1, v0, :cond_d

    .line 1479
    iput p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->D:I

    .line 1480
    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->e:Lcom/hannesdorfmann/swipeback/SwipeBack$b;

    if-eqz v1, :cond_d

    .line 1481
    invoke-interface {v1, v0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack$b;->a(II)V

    :cond_d
    return-object p0
.end method

.method protected j()V
    .registers 4

    .line 821
    sget-object v0, Lcom/hannesdorfmann/swipeback/SwipeBack$3;->a:[I

    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getPosition()Lcom/hannesdorfmann/swipeback/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hannesdorfmann/swipeback/b;->ordinal()I

    move-result v1

    aget v0, v0, v1

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eq v0, v1, :cond_7a

    const/4 v1, 0x2

    if-eq v0, v1, :cond_5a

    const/4 v1, 0x3

    if-eq v0, v1, :cond_3a

    const/4 v1, 0x4

    if-eq v0, v1, :cond_1a

    goto :goto_39

    .line 844
    :cond_1a
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iput v2, v0, Landroid/graphics/Rect;->left:I

    .line 845
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getWidth()I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->right:I

    .line 846
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-static {v1}, Lcom/hannesdorfmann/swipeback/e;->d(Landroid/view/View;)I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->top:I

    .line 847
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->top:I

    iget v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->v:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->bottom:I

    :goto_39
    return-void

    .line 837
    :cond_3a
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iput v2, v0, Landroid/graphics/Rect;->top:I

    .line 838
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getHeight()I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->bottom:I

    .line 839
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-static {v1}, Lcom/hannesdorfmann/swipeback/e;->c(Landroid/view/View;)I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->left:I

    .line 840
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->left:I

    iget v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->v:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->right:I

    return-void

    .line 830
    :cond_5a
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iput v2, v0, Landroid/graphics/Rect;->left:I

    .line 831
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getWidth()I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->right:I

    .line 832
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-static {v1}, Lcom/hannesdorfmann/swipeback/e;->b(Landroid/view/View;)I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->bottom:I

    .line 833
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->bottom:I

    iget v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->v:I

    sub-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->top:I

    return-void

    .line 823
    :cond_7a
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iput v2, v0, Landroid/graphics/Rect;->top:I

    .line 824
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getHeight()I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->bottom:I

    .line 825
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->A:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-static {v1}, Lcom/hannesdorfmann/swipeback/e;->a(Landroid/view/View;)I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->right:I

    .line 826
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->L:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->right:I

    iget v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->v:I

    sub-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->left:I

    return-void
.end method

.method protected final k()Z
    .registers 3

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

    const/16 v1, 0x11

    if-lt v0, v1, :cond_1b

    .line 561
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-nez v0, :cond_19

    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isDestroyed()Z

    move-result v0

    if-eqz v0, :cond_17

    goto :goto_19

    :cond_17
    const/4 v0, 0x0

    return v0

    :cond_19
    :goto_19
    const/4 v0, 0x1

    return v0

    .line 563
    :cond_1b
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->g:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    return v0
.end method

.method protected final l()V
    .registers 3

    .line 1086
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->G:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_a

    .line 1087
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->E:I

    iput v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->F:I

    return-void

    :cond_a
    const/4 v1, 0x2

    if-ne v0, v1, :cond_28

    .line 1089
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getPosition()Lcom/hannesdorfmann/swipeback/b;

    move-result-object v0

    .line 1090
    sget-object v1, Lcom/hannesdorfmann/swipeback/b;->TOP:Lcom/hannesdorfmann/swipeback/b;

    if-eq v0, v1, :cond_21

    sget-object v1, Lcom/hannesdorfmann/swipeback/b;->BOTTOM:Lcom/hannesdorfmann/swipeback/b;

    if-ne v0, v1, :cond_1a

    goto :goto_21

    .line 1093
    :cond_1a
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getMeasuredWidth()I

    move-result v0

    iput v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->F:I

    return-void

    .line 1091
    :cond_21
    :goto_21
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getMeasuredHeight()I

    move-result v0

    iput v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->F:I

    return-void

    :cond_28
    const/4 v0, 0x0

    .line 1096
    iput v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->F:I

    return-void
.end method

.method public final m()Lcom/hannesdorfmann/swipeback/SwipeBack;
    .registers 2

    const/4 v0, 0x0

    .line 1141
    iput-boolean v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->s:Z

    .line 1142
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->invalidate()V

    return-object p0
.end method

.method protected onAttachedToWindow()V
    .registers 3

    .line 778
    invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V

    .line 779
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->j:Landroid/view/ViewTreeObserver$OnScrollChangedListener;

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnScrollChangedListener(Landroid/view/ViewTreeObserver$OnScrollChangedListener;)V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .registers 3

    .line 785
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->j:Landroid/view/ViewTreeObserver$OnScrollChangedListener;

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->removeOnScrollChangedListener(Landroid/view/ViewTreeObserver$OnScrollChangedListener;)V

    .line 786
    invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V

    return-void
.end method

.method protected onFinishInflate()V
    .registers 4

    .line 740
    invoke-super {p0}, Landroid/view/ViewGroup;->onFinishInflate()V

    .line 741
    sget v0, Lcom/hannesdorfmann/swipeback/c$c;->sbSwipeBackView:I

    invoke-virtual {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_25

    .line 743
    invoke-virtual {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->removeView(Landroid/view/View;)V

    .line 4374
    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 4387
    iput-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->c:Landroid/view/View;

    .line 4388
    iget-object v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {v2}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->removeAllViews()V

    .line 4389
    iget-object v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->z:Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;

    invoke-virtual {v2, v0, v1}, Lcom/hannesdorfmann/swipeback/BuildLayerFrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 4391
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->c:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->b(Landroid/view/View;)V

    .line 747
    :cond_25
    sget v0, Lcom/hannesdorfmann/swipeback/c$c;->sbContent:I

    invoke-virtual {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_33

    .line 749
    invoke-virtual {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->removeView(Landroid/view/View;)V

    .line 750
    invoke-virtual {p0, v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->a(Landroid/view/View;)Lcom/hannesdorfmann/swipeback/SwipeBack;

    .line 753
    :cond_33
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getChildCount()I

    move-result v0

    const/4 v1, 0x2

    if-gt v0, v1, :cond_3b

    return-void

    .line 754
    :cond_3b
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "swipe back and content view added in xml must have id\'s @id/sbSwipeBackView and @id/sbContent"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public onRtlPropertiesChanged(I)V
    .registers 3

    .line 901
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRtlPropertiesChanged(I)V

    .line 903
    iget-boolean p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->a:Z

    if-nez p1, :cond_c

    .line 904
    iget p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->t:I

    invoke-direct {p0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->i(I)Lcom/hannesdorfmann/swipeback/SwipeBack;

    .line 907
    :cond_c
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getPosition()Lcom/hannesdorfmann/swipeback/b;

    move-result-object p1

    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->i:Lcom/hannesdorfmann/swipeback/b;

    if-eq p1, v0, :cond_23

    .line 908
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getPosition()Lcom/hannesdorfmann/swipeback/b;

    move-result-object p1

    iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->i:Lcom/hannesdorfmann/swipeback/b;

    .line 909
    iget p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->M:F

    const/high16 v0, -0x40800000    # -1.0f

    mul-float p1, p1, v0

    invoke-virtual {p0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->setOffsetPixels(F)V

    .line 914
    :cond_23
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->requestLayout()V

    .line 915
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->invalidate()V

    return-void
.end method

.method public postOnAnimation(Ljava/lang/Runnable;)V
    .registers 4

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

    const/16 v1, 0x10

    if-lt v0, v1, :cond_a

    .line 1588
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->postOnAnimation(Ljava/lang/Runnable;)V

    return-void

    :cond_a
    const-wide/16 v0, 0x10

    .line 1590
    invoke-virtual {p0, p1, v0, v1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method protected setOffsetPixels(F)V
    .registers 4

    .line 924
    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->M:F

    float-to-int v0, v0

    float-to-int v1, p1

    .line 927
    iput p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->M:F

    if-eq v1, v0, :cond_22

    .line 930
    invoke-virtual {p0, v1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->d(I)V

    if-eqz v1, :cond_f

    const/4 p1, 0x1

    goto :goto_10

    :cond_f
    const/4 p1, 0x0

    .line 931
    :goto_10
    iput-boolean p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->C:Z

    .line 934
    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result p1

    int-to-float p1, p1

    iget v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->B:I

    int-to-float v0, v0

    div-float/2addr p1, v0

    .line 5605
    iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->e:Lcom/hannesdorfmann/swipeback/SwipeBack$b;

    if-eqz v0, :cond_22

    .line 5606
    invoke-interface {v0, p1, v1}, Lcom/hannesdorfmann/swipeback/SwipeBack$b;->a(FI)V

    :cond_22
    return-void
.end method

.method public abstract setOffsetSwipeBackViewEnabled(Z)V
.end method

.method public setOnInterceptMoveEventListener(Lcom/hannesdorfmann/swipeback/SwipeBack$a;)V
    .registers 2

    .line 1132
    iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->J:Lcom/hannesdorfmann/swipeback/SwipeBack$a;

    return-void
.end method

.method public setTouchEnabled(Z)V
    .registers 2

    if-eqz p1, :cond_8

    .line 868
    iget p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->x:I

    invoke-virtual {p0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->b(I)Lcom/hannesdorfmann/swipeback/SwipeBack;

    return-void

    .line 870
    :cond_8
    invoke-virtual {p0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->getTouchMode()I

    move-result p1

    iput p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack;->x:I

    const/4 p1, 0x0

    .line 871
    invoke-virtual {p0, p1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->b(I)Lcom/hannesdorfmann/swipeback/SwipeBack;

    return-void
.end method