MyProfileFragment$3.smali

.class final Lcom/imo/android/imoim/profile/MyProfileFragment$3;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroidx/lifecycle/Observer;


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

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroidx/lifecycle/Observer<",
        "Lcom/imo/android/imoim/profile/viewmodel/b;",
        ">;"
    }
.end annotation


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


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/profile/MyProfileFragment;)V
    .registers 2

    .line 634
    iput-object p1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

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

    return-void
.end method


# virtual methods
.method public final synthetic onChanged(Ljava/lang/Object;)V
    .registers 11

    .line 634
    check-cast p1, Lcom/imo/android/imoim/profile/viewmodel/b;

    if-eqz p1, :cond_93

    .line 1641
    iget-object v0, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->o(Lcom/imo/android/imoim/profile/MyProfileFragment;)Z

    move-result v0

    if-nez v0, :cond_17

    .line 1642
    iget-object v0, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->h(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/musicpendant/c;

    move-result-object v0

    .line 2065
    iget-object v1, p1, Lcom/imo/android/imoim/profile/viewmodel/b;->a:Lcom/imo/android/imoim/profile/musicpendant/MusicPendant;

    .line 1642
    invoke-virtual {v0, v1}, Lcom/imo/android/imoim/profile/musicpendant/c;->a(Lcom/imo/android/imoim/profile/musicpendant/MusicPendant;)V

    .line 2113
    :cond_17
    iget-object v0, p1, Lcom/imo/android/imoim/profile/viewmodel/b;->e:Lcom/imo/android/imoim/profile/visitor/c;

    .line 1647
    iget-object v1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v1, v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Lcom/imo/android/imoim/profile/MyProfileFragment;Lcom/imo/android/imoim/profile/visitor/c;)V

    .line 2122
    iget-object p1, p1, Lcom/imo/android/imoim/profile/viewmodel/b;->g:Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;

    const/4 v0, 0x0

    if-eqz p1, :cond_28

    .line 1652
    invoke-virtual {p1}, Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;->b()Lcom/imo/android/imoim/communitymodule/data/certification/CyCertIsLamicTeacher;

    move-result-object v1

    goto :goto_29

    :cond_28
    move-object v1, v0

    .line 1655
    :goto_29
    iget-object v2, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-virtual {v2}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getContext()Landroid/content/Context;

    move-result-object v2

    if-eqz v2, :cond_93

    if-eqz v1, :cond_8a

    .line 1659
    iget-object v3, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    iget-object v3, v3, Lcom/imo/android/imoim/profile/MyProfileFragment;->h:Landroid/view/ViewGroup;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 1660
    iget-object v3, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v3}, Lcom/imo/android/imoim/profile/MyProfileFragment;->p(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/view/CommunityBadgeView;

    move-result-object v3

    if-nez v3, :cond_64

    .line 1661
    iget-object v3, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    new-instance v5, Lcom/imo/android/imoim/profile/view/CommunityBadgeView;

    invoke-direct {v5, v2}, Lcom/imo/android/imoim/profile/view/CommunityBadgeView;-><init>(Landroid/content/Context;)V

    invoke-static {v3, v5}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Lcom/imo/android/imoim/profile/MyProfileFragment;Lcom/imo/android/imoim/profile/view/CommunityBadgeView;)Lcom/imo/android/imoim/profile/view/CommunityBadgeView;

    .line 1662
    iget-object v3, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    iget-object v3, v3, Lcom/imo/android/imoim/profile/MyProfileFragment;->h:Landroid/view/ViewGroup;

    iget-object v5, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v5}, Lcom/imo/android/imoim/profile/MyProfileFragment;->p(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/view/CommunityBadgeView;

    move-result-object v5

    new-instance v6, Landroid/view/ViewGroup$LayoutParams;

    const/4 v7, -0x1

    const/4 v8, -0x2

    invoke-direct {v6, v7, v8}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v3, v5, v4, v6}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 1663
    invoke-static {p1, v1}, Lcom/imo/android/imoim/communitymodule/stats/b;->a(Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;Lcom/imo/android/imoim/communitymodule/data/certification/CyCertIsLamicTeacher;)V

    .line 1667
    :cond_64
    instance-of v3, v2, Lcom/imo/android/imoim/skin/SkinActivity;

    if-eqz v3, :cond_6b

    .line 1668
    move-object v0, v2

    check-cast v0, Lcom/imo/android/imoim/skin/SkinActivity;

    .line 1670
    :cond_6b
    iget-object v2, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v2}, Lcom/imo/android/imoim/profile/MyProfileFragment;->p(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/view/CommunityBadgeView;

    move-result-object v2

    const/4 v3, 0x1

    invoke-virtual {v2, v3, v1, v0}, Lcom/imo/android/imoim/profile/view/CommunityBadgeView;->a(ZLcom/imo/android/imoim/communitymodule/data/certification/CyCertIsLamicTeacher;Lcom/imo/android/imoim/skin/SkinActivity;)V

    .line 1671
    invoke-static {}, Lcom/imo/android/imoim/communitymodule/data/certification/CyCertIsLamicTeacher;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_89

    .line 1674
    iget-object v2, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    invoke-static {v2}, Lcom/imo/android/imoim/profile/MyProfileFragment;->p(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/view/CommunityBadgeView;

    move-result-object v2

    new-instance v3, Lcom/imo/android/imoim/profile/MyProfileFragment$3$1;

    invoke-direct {v3, p0, v0, p1, v1}, Lcom/imo/android/imoim/profile/MyProfileFragment$3$1;-><init>(Lcom/imo/android/imoim/profile/MyProfileFragment$3;Ljava/lang/String;Lcom/imo/android/imoim/communitymodule/data/CommunityProfileInfo;Lcom/imo/android/imoim/communitymodule/data/certification/CyCertIsLamicTeacher;)V

    invoke-virtual {v2, v3}, Lcom/imo/android/imoim/profile/view/CommunityBadgeView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_89
    return-void

    .line 1685
    :cond_8a
    iget-object p1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$3;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

    iget-object p1, p1, Lcom/imo/android/imoim/profile/MyProfileFragment;->h:Landroid/view/ViewGroup;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V

    :cond_93
    return-void
.end method