SwipeBack$2.smali
.class final Lcom/hannesdorfmann/swipeback/SwipeBack$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/view/ViewTreeObserver$OnScrollChangedListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/hannesdorfmann/swipeback/SwipeBack;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/hannesdorfmann/swipeback/SwipeBack;
# direct methods
.method constructor <init>(Lcom/hannesdorfmann/swipeback/SwipeBack;)V
.registers 2
.line 1066
iput-object p1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onScrollChanged()V
.registers 4
.line 1069
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v0, v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->w:Landroid/view/View;
if-eqz v0, :cond_7b
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v1, v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->w:Landroid/view/View;
.line 1764
invoke-virtual {v1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v1
:goto_e
if-eqz v1, :cond_19
if-ne v1, v0, :cond_14
const/4 v0, 0x1
goto :goto_1a
.line 1770
:cond_14
invoke-interface {v1}, Landroid/view/ViewParent;->getParent()Landroid/view/ViewParent;
move-result-object v1
goto :goto_e
:cond_19
const/4 v0, 0x0
:goto_1a
if-eqz v0, :cond_7b
.line 1070
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v0, v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->w:Landroid/view/View;
iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
invoke-static {v1}, Lcom/hannesdorfmann/swipeback/SwipeBack;->c(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/graphics/Rect;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V
.line 1071
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v1, v0, Lcom/hannesdorfmann/swipeback/SwipeBack;->w:Landroid/view/View;
iget-object v2, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
invoke-static {v2}, Lcom/hannesdorfmann/swipeback/SwipeBack;->c(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/graphics/Rect;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/hannesdorfmann/swipeback/SwipeBack;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V
.line 1072
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
invoke-static {v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->c(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/graphics/Rect;
move-result-object v0
iget v0, v0, Landroid/graphics/Rect;->left:I
iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v1, v1, Lcom/hannesdorfmann/swipeback/SwipeBack;->y:Landroid/graphics/Rect;
iget v1, v1, Landroid/graphics/Rect;->left:I
if-ne v0, v1, :cond_76
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
invoke-static {v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->c(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/graphics/Rect;
move-result-object v0
iget v0, v0, Landroid/graphics/Rect;->top:I
iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v1, v1, Lcom/hannesdorfmann/swipeback/SwipeBack;->y:Landroid/graphics/Rect;
iget v1, v1, Landroid/graphics/Rect;->top:I
if-ne v0, v1, :cond_76
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
.line 1073
invoke-static {v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->c(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/graphics/Rect;
move-result-object v0
iget v0, v0, Landroid/graphics/Rect;->right:I
iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v1, v1, Lcom/hannesdorfmann/swipeback/SwipeBack;->y:Landroid/graphics/Rect;
iget v1, v1, Landroid/graphics/Rect;->right:I
if-ne v0, v1, :cond_76
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
invoke-static {v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->c(Lcom/hannesdorfmann/swipeback/SwipeBack;)Landroid/graphics/Rect;
move-result-object v0
iget v0, v0, Landroid/graphics/Rect;->bottom:I
iget-object v1, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
iget-object v1, v1, Lcom/hannesdorfmann/swipeback/SwipeBack;->y:Landroid/graphics/Rect;
iget v1, v1, Landroid/graphics/Rect;->bottom:I
if-eq v0, v1, :cond_7b
.line 1074
:cond_76
iget-object v0, p0, Lcom/hannesdorfmann/swipeback/SwipeBack$2;->a:Lcom/hannesdorfmann/swipeback/SwipeBack;
invoke-virtual {v0}, Lcom/hannesdorfmann/swipeback/SwipeBack;->invalidate()V
:cond_7b
return-void
.end method