c.smali
.class public Lcom/scwang/smartrefresh/layout/g/c;
.super Ljava/lang/Object;
# direct methods
.method public static a(Landroid/view/View;Lcom/scwang/smartrefresh/layout/a/g;Lcom/scwang/smartrefresh/layout/f/a;)V
.registers 5
:try_start_0
instance-of v0, p0, Landroid/support/design/widget/CoordinatorLayout;
if-eqz v0, :cond_15
invoke-interface {p1}, Lcom/scwang/smartrefresh/layout/a/g;->a()Lcom/scwang/smartrefresh/layout/a/h;
move-result-object v0
const/4 v1, 0x0
invoke-interface {v0, v1}, Lcom/scwang/smartrefresh/layout/a/h;->c(Z)Lcom/scwang/smartrefresh/layout/a/h;
check-cast p0, Landroid/view/ViewGroup;
invoke-interface {p1}, Lcom/scwang/smartrefresh/layout/a/g;->a()Lcom/scwang/smartrefresh/layout/a/h;
move-result-object v0
invoke-static {p0, v0, p2}, Lcom/scwang/smartrefresh/layout/g/c;->a(Landroid/view/ViewGroup;Lcom/scwang/smartrefresh/layout/a/h;Lcom/scwang/smartrefresh/layout/f/a;)V
:try_end_15
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_15} :catch_16
:cond_15
:goto_15
return-void
:catch_16
move-exception v0
goto :goto_15
.end method
.method private static a(Landroid/view/ViewGroup;Lcom/scwang/smartrefresh/layout/a/h;Lcom/scwang/smartrefresh/layout/f/a;)V
.registers 6
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v0
add-int/lit8 v0, v0, -0x1
move v1, v0
:goto_7
if-ltz v1, :cond_1f
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v0
instance-of v2, v0, Landroid/support/design/widget/AppBarLayout;
if-eqz v2, :cond_1b
check-cast v0, Landroid/support/design/widget/AppBarLayout;
new-instance v2, Lcom/scwang/smartrefresh/layout/g/c$1;
invoke-direct {v2, p2, p1}, Lcom/scwang/smartrefresh/layout/g/c$1;-><init>(Lcom/scwang/smartrefresh/layout/f/a;Lcom/scwang/smartrefresh/layout/a/h;)V
invoke-virtual {v0, v2}, Landroid/support/design/widget/AppBarLayout;->addOnOffsetChangedListener(Landroid/support/design/widget/AppBarLayout$OnOffsetChangedListener;)V
:cond_1b
add-int/lit8 v0, v1, -0x1
move v1, v0
goto :goto_7
:cond_1f
return-void
.end method