ChannelProfileComponent$c.smali

.class public final Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;
.super Ljava/lang/Object;
.source "SourceFile"

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


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

.field private b:I

.field private c:I

.field private d:I

.field private e:Lcom/imo/android/imoim/publicchannel/profile/c;

.field private f:I


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 233
    iput-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

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

    const/4 p1, 0x1

    .line 234
    invoke-static {p1}, Lcom/imo/android/imoim/util/ei;->a(I)I

    move-result p1

    iput p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->b:I

    const/16 p1, 0x1e

    .line 235
    invoke-static {p1}, Lcom/imo/android/imoim/util/ei;->a(I)I

    move-result p1

    iput p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->c:I

    const/16 p1, 0x3c

    .line 236
    invoke-static {p1}, Lcom/imo/android/imoim/util/ei;->a(I)I

    move-result p1

    iput p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->d:I

    return-void
.end method


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

    const-string v0, "appBarLayout"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 242
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {p1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->f(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Z

    move-result p1

    if-eqz p1, :cond_16

    if-eqz p2, :cond_16

    .line 243
    iput p2, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->f:I

    .line 244
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {p1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->g(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)V

    .line 246
    :cond_16
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {p1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->f(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Z

    move-result p1

    if-nez p1, :cond_42

    iget p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->f:I

    sub-int p1, p2, p1

    invoke-static {p1}, Ljava/lang/Math;->abs(I)I

    move-result p1

    const/16 v0, 0xa

    if-lt p1, v0, :cond_42

    .line 247
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-virtual {p1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    if-eqz p1, :cond_3a

    check-cast p1, Lcom/imo/android/imoim/publicchannel/profile/ChannelProfileActivity;

    const-string v0, "28"

    invoke-virtual {p1, v0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelProfileActivity;->a(Ljava/lang/String;)Lcom/imo/android/imoim/publicchannel/h/i$a;

    goto :goto_42

    :cond_3a
    new-instance p1, Lkotlin/TypeCastException;

    const-string p2, "null cannot be cast to non-null type com.imo.android.imoim.publicchannel.profile.ChannelProfileActivity"

    invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 250
    :cond_42
    :goto_42
    invoke-static {p2}, Ljava/lang/Math;->abs(I)I

    move-result p1

    .line 252
    iget p2, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->b:I

    const/high16 v0, 0x3f800000    # 1.0f

    if-gt p1, p2, :cond_4e

    const/4 p2, 0x0

    goto :goto_61

    .line 255
    :cond_4e
    iget v1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->c:I

    if-le p2, p1, :cond_53

    goto :goto_5f

    :cond_53
    if-lt v1, p1, :cond_5f

    sub-int v2, p1, p2

    int-to-float v2, v2

    mul-float v2, v2, v0

    sub-int/2addr v1, p2

    int-to-float p2, v1

    div-float p2, v2, p2

    goto :goto_61

    :cond_5f
    :goto_5f
    const/high16 p2, 0x3f800000    # 1.0f

    .line 262
    :goto_61
    iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->h(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object v1

    sub-float/2addr v0, p2

    invoke-virtual {v1, v0}, Landroid/view/View;->setAlpha(F)V

    .line 263
    iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->i(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/View;->setAlpha(F)V

    .line 264
    iget-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {v0}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->j(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p2}, Landroid/view/View;->setAlpha(F)V

    .line 266
    iget-object p2, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {p2}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->k(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object p2

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

    move-result-object p2

    if-eqz p2, :cond_11b

    check-cast p2, Landroid/widget/LinearLayout$LayoutParams;

    .line 267
    iget v0, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->d:I

    const/4 v1, 0x0

    if-gtz p1, :cond_91

    goto :goto_d5

    :cond_91
    if-le v0, p1, :cond_d5

    .line 268
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->e:Lcom/imo/android/imoim/publicchannel/profile/c;

    const/4 v0, 0x0

    if-nez p1, :cond_a6

    .line 269
    new-instance p1, Lcom/imo/android/imoim/publicchannel/profile/c;

    iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->k(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object v1

    iget p2, p2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    invoke-direct {p1, v1, p2, v0}, Lcom/imo/android/imoim/publicchannel/profile/c;-><init>(Landroid/view/View;IZ)V

    goto :goto_cd

    :cond_a6
    if-eqz p1, :cond_ae

    .line 1011
    iget-boolean p1, p1, Lcom/imo/android/imoim/publicchannel/profile/c;->d:Z

    .line 271
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    :cond_ae
    if-nez v1, :cond_b3

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_b3
    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_d4

    .line 272
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->e:Lcom/imo/android/imoim/publicchannel/profile/c;

    if-eqz p1, :cond_c0

    invoke-virtual {p1}, Lcom/imo/android/imoim/publicchannel/profile/c;->b()V

    .line 273
    :cond_c0
    new-instance p1, Lcom/imo/android/imoim/publicchannel/profile/c;

    iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->k(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object v1

    iget p2, p2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    invoke-direct {p1, v1, p2, v0}, Lcom/imo/android/imoim/publicchannel/profile/c;-><init>(Landroid/view/View;IZ)V

    .line 268
    :goto_cd
    iput-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->e:Lcom/imo/android/imoim/publicchannel/profile/c;

    if-eqz p1, :cond_d4

    .line 278
    invoke-virtual {p1}, Lcom/imo/android/imoim/publicchannel/profile/c;->a()V

    :cond_d4
    return-void

    .line 279
    :cond_d5
    :goto_d5
    iget v0, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->d:I

    if-le p1, v0, :cond_11a

    .line 280
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->e:Lcom/imo/android/imoim/publicchannel/profile/c;

    const/4 v0, 0x1

    if-nez p1, :cond_ec

    .line 281
    new-instance p1, Lcom/imo/android/imoim/publicchannel/profile/c;

    iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->k(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object v1

    iget p2, p2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    invoke-direct {p1, v1, p2, v0}, Lcom/imo/android/imoim/publicchannel/profile/c;-><init>(Landroid/view/View;IZ)V

    goto :goto_113

    :cond_ec
    if-eqz p1, :cond_f4

    .line 2011
    iget-boolean p1, p1, Lcom/imo/android/imoim/publicchannel/profile/c;->d:Z

    .line 283
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    :cond_f4
    if-nez v1, :cond_f9

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_f9
    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-nez p1, :cond_11a

    .line 284
    iget-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->e:Lcom/imo/android/imoim/publicchannel/profile/c;

    if-eqz p1, :cond_106

    invoke-virtual {p1}, Lcom/imo/android/imoim/publicchannel/profile/c;->b()V

    .line 285
    :cond_106
    new-instance p1, Lcom/imo/android/imoim/publicchannel/profile/c;

    iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->a:Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;

    invoke-static {v1}, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;->k(Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent;)Landroid/view/View;

    move-result-object v1

    iget p2, p2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    invoke-direct {p1, v1, p2, v0}, Lcom/imo/android/imoim/publicchannel/profile/c;-><init>(Landroid/view/View;IZ)V

    .line 280
    :goto_113
    iput-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/component/ChannelProfileComponent$c;->e:Lcom/imo/android/imoim/publicchannel/profile/c;

    if-eqz p1, :cond_11a

    .line 290
    invoke-virtual {p1}, Lcom/imo/android/imoim/publicchannel/profile/c;->a()V

    :cond_11a
    return-void

    .line 266
    :cond_11b
    new-instance p1, Lkotlin/TypeCastException;

    const-string p2, "null cannot be cast to non-null type android.widget.LinearLayout.LayoutParams"

    invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1
.end method