MyProfileFragment$2.smali

.class final Lcom/imo/android/imoim/profile/MyProfileFragment$2;
.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/e;",
        ">;"
    }
.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 596
    iput-object p1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$2;->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 7

    .line 596
    check-cast p1, Lcom/imo/android/imoim/profile/viewmodel/e;

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

    iget-object v0, v0, Lcom/imo/android/imoim/profile/MyProfileFragment;->d:Lcom/imo/android/imoim/fresco/XCircleImageView;

    .line 2034
    iget-object v1, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->a:Ljava/lang/String;

    .line 1599
    sget-object v2, Lcom/imo/android/imoim/util/ca$b;->SMALL:Lcom/imo/android/imoim/util/ca$b;

    const v3, 0x7f080a97

    invoke-static {v0, v1, v3, v2}, Lcom/imo/hd/component/msglist/a;->a(Lcom/imo/android/imoim/fresco/ImoImageView;Ljava/lang/String;ILcom/imo/android/imoim/util/ca$b;)Landroidx/lifecycle/LiveData;

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

    invoke-static {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->d(Lcom/imo/android/imoim/profile/MyProfileFragment;)Lcom/imo/android/imoim/profile/viewmodel/me/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/imo/android/imoim/profile/viewmodel/me/a;->i()Landroidx/lifecycle/LiveData;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

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

    move-result v0

    if-eqz v0, :cond_6e

    .line 2050
    iget-object v0, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->d:Ljava/lang/String;

    const-string v1, "male"

    .line 1603
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3e

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

    invoke-virtual {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080471

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    goto :goto_6f

    .line 3050
    :cond_3e
    iget-object v0, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->d:Ljava/lang/String;

    const-string v1, "female"

    .line 1605
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_56

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

    invoke-virtual {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080470

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    goto :goto_6f

    .line 4050
    :cond_56
    iget-object v0, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->d:Ljava/lang/String;

    const-string v1, "other"

    .line 1607
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6e

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

    invoke-virtual {v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080472

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    goto :goto_6f

    :cond_6e
    const/4 v0, 0x0

    :goto_6f
    const/4 v1, 0x0

    if-eqz v0, :cond_9e

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

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

    move-result-object v2

    const/16 v3, 0x14

    invoke-static {v2, v3}, Lcom/imo/xui/util/b;->a(Landroid/content/Context;I)I

    move-result v2

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

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

    move-result-object v4

    invoke-static {v4, v3}, Lcom/imo/xui/util/b;->a(Landroid/content/Context;I)I

    move-result v3

    invoke-virtual {v0, v1, v1, v2, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

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

    iget-object v2, v2, Lcom/imo/android/imoim/profile/MyProfileFragment;->e:Landroid/widget/TextView;

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

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

    .line 5038
    iget-object v3, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->b:Ljava/lang/String;

    .line 1614
    invoke-static {v3, v0}, Lcom/imo/android/imoim/util/ea;->a(Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/text/SpannableString;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_a7

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

    iget-object v0, v0, Lcom/imo/android/imoim/profile/MyProfileFragment;->e:Landroid/widget/TextView;

    .line 6038
    iget-object v2, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->b:Ljava/lang/String;

    .line 1616
    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 6054
    :goto_a7
    iget-object v0, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->e:Ljava/lang/String;

    .line 1619
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_d7

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

    iget-object p1, p1, Lcom/imo/android/imoim/profile/MyProfileFragment;->j:Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result p1

    const/16 v0, 0x8

    if-eqz p1, :cond_c2

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

    iget-object v1, p1, Lcom/imo/android/imoim/profile/MyProfileFragment;->l:Landroid/view/View;

    invoke-virtual {p1, v1, v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Landroid/view/View;I)V

    .line 1623
    :cond_c2
    iget-object p1, p0, Lcom/imo/android/imoim/profile/MyProfileFragment$2;->a:Lcom/imo/android/imoim/profile/MyProfileFragment;

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

    invoke-virtual {p1, v1, v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Landroid/view/View;I)V

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

    iget-object v1, p1, Lcom/imo/android/imoim/profile/MyProfileFragment;->n:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    invoke-virtual {p1, v1, v0}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Landroid/view/View;I)V

    return-void

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

    iget-object v2, v0, Lcom/imo/android/imoim/profile/MyProfileFragment;->l:Landroid/view/View;

    invoke-virtual {v0, v2, v1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Landroid/view/View;I)V

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

    iget-object v2, v0, Lcom/imo/android/imoim/profile/MyProfileFragment;->m:Landroid/view/ViewGroup;

    invoke-virtual {v0, v2, v1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Landroid/view/View;I)V

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

    iget-object v2, v0, Lcom/imo/android/imoim/profile/MyProfileFragment;->n:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    check-cast v2, Landroid/view/View;

    invoke-virtual {v0, v2, v1}, Lcom/imo/android/imoim/profile/MyProfileFragment;->a(Landroid/view/View;I)V

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

    iget-object v0, v0, Lcom/imo/android/imoim/profile/MyProfileFragment;->n:Landroid/widget/TextView;

    .line 7054
    iget-object p1, p1, Lcom/imo/android/imoim/profile/viewmodel/e;->e:Ljava/lang/String;

    const/4 v1, 0x1

    .line 1629
    invoke-static {p1, v1}, Lcom/imo/android/imoim/util/ei;->a(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method