a.smali

.class public final Lcom/scwang/smart/refresh/layout/util/a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/google/android/material/appbar/AppBarLayout$c;


# instance fields
.field public final synthetic a:Lcom/scwang/smart/refresh/layout/listener/a;


# direct methods
.method public constructor <init>(Lcom/scwang/smart/refresh/layout/listener/a;)V
    .registers 2

    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/util/a;->a:Lcom/scwang/smart/refresh/layout/listener/a;

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

    return-void
.end method


# virtual methods
.method public final a(Lcom/google/android/material/appbar/AppBarLayout;I)V
    .registers 7

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/util/a;->a:Lcom/scwang/smart/refresh/layout/listener/a;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-ltz p2, :cond_8

    const/4 v3, 0x1

    goto :goto_9

    :cond_8
    const/4 v3, 0x0

    .line 2
    :goto_9
    invoke-virtual {p1}, Lcom/google/android/material/appbar/AppBarLayout;->getTotalScrollRange()I

    move-result p1

    add-int/2addr p1, p2

    if-gtz p1, :cond_11

    goto :goto_12

    :cond_11
    const/4 v1, 0x0

    .line 3
    :goto_12
    check-cast v0, Lcom/scwang/smart/refresh/layout/wrapper/a;

    .line 4
    iput-boolean v3, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->g:Z

    .line 5
    iput-boolean v1, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->h:Z

    return-void
.end method