b.smali
.class public Lcom/scwang/smartrefresh/layout/c/b;
.super Ljava/lang/Object;
.source "DesignUtil.java"
# direct methods
.method public static a(Landroid/view/View;Lcom/scwang/smartrefresh/layout/a/i;Lcom/scwang/smartrefresh/layout/b/a;)V
.registers 5
.line 1
:try_start_0
instance-of v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
if-eqz v0, :cond_2f
.line 2
invoke-interface {p1}, Lcom/scwang/smartrefresh/layout/a/i;->b()Lcom/scwang/smartrefresh/layout/a/j;
move-result-object p1
const/4 v0, 0x0
invoke-interface {p1, v0}, Lcom/scwang/smartrefresh/layout/a/j;->setEnableNestedScroll(Z)Lcom/scwang/smartrefresh/layout/a/j;
.line 3
check-cast p0, Landroid/view/ViewGroup;
.line 4
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
move-result p1
add-int/lit8 p1, p1, -0x1
:goto_14
if-ltz p1, :cond_2f
.line 5
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v0
.line 6
instance-of v1, v0, Lcom/google/android/material/appbar/AppBarLayout;
if-eqz v1, :cond_28
.line 7
check-cast v0, Lcom/google/android/material/appbar/AppBarLayout;
new-instance v1, Lcom/scwang/smartrefresh/layout/c/a;
invoke-direct {v1, p2}, Lcom/scwang/smartrefresh/layout/c/a;-><init>(Lcom/scwang/smartrefresh/layout/b/a;)V
invoke-virtual {v0, v1}, Lcom/google/android/material/appbar/AppBarLayout;->addOnOffsetChangedListener(Lcom/google/android/material/appbar/AppBarLayout$b;)V
:try_end_28
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_28} :catch_2b
:cond_28
add-int/lit8 p1, p1, -0x1
goto :goto_14
:catch_2b
move-exception p0
.line 8
invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V
:cond_2f
return-void
.end method