CyBearHomeFragment$p.smali

.class final Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment$p;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroidx/lifecycle/Observer;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Landroidx/lifecycle/Observer<",
        "Ljava/util/List<",
        "+",
        "Lcom/imo/android/imoim/mediaroom/roominfo/VoiceRoomInfo;",
        ">;>;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;


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

    iput-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment$p;->a:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;

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

    return-void
.end method


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

    .line 77
    check-cast p1, Ljava/util/List;

    const/4 v0, 0x0

    if-eqz p1, :cond_a

    .line 1388
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    goto :goto_b

    :cond_a
    const/4 p1, 0x0

    :goto_b
    if-lez p1, :cond_7e

    sget-object p1, Lcom/imo/android/imoim/community/bearcommunity/dialog/a;->b:Lcom/imo/android/imoim/community/bearcommunity/dialog/a;

    iget-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment$p;->a:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;

    iget-object p1, p1, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;->b:Ljava/lang/String;

    invoke-static {p1}, Lcom/imo/android/imoim/community/bearcommunity/dialog/a;->a(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_7e

    .line 1389
    iget-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment$p;->a:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;

    invoke-virtual {p1}, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    if-eqz p1, :cond_7e

    sget-object v1, Lcom/imo/android/imoim/community/bearcommunity/dialog/CyVRRecommendDialog;->c:Lcom/imo/android/imoim/community/bearcommunity/dialog/CyVRRecommendDialog$c;

    const-string v1, "context"

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

    iget-object v2, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment$p;->a:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;

    iget-object v2, v2, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;->b:Ljava/lang/String;

    iget-object v3, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment$p;->a:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;

    invoke-static {v3}, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;->b(Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeFragment;)Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;

    move-result-object v3

    .line 2401
    iget-object v3, v3, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;->a:Lcom/imo/android/imoim/community/d/a/a;

    .line 3013
    iget-object v3, v3, Lcom/imo/android/imoim/community/d/b;->b:Ljava/lang/String;

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

    const-string v1, "communityId"

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

    .line 3036
    sget-object v4, Lcom/imo/android/imoim/community/bearcommunity/dialog/a;->b:Lcom/imo/android/imoim/community/bearcommunity/dialog/a;

    invoke-static {v2}, Lcom/imo/android/imoim/community/bearcommunity/dialog/a;->a(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_7e

    .line 3038
    new-instance v4, Lcom/imo/android/imoim/community/bearcommunity/dialog/CyVRRecommendDialog;

    invoke-direct {v4, p1}, Lcom/imo/android/imoim/community/bearcommunity/dialog/CyVRRecommendDialog;-><init>(Landroidx/fragment/app/FragmentActivity;)V

    .line 3041
    new-instance p1, Landroid/os/Bundle;

    invoke-direct {p1}, Landroid/os/Bundle;-><init>()V

    const-string v5, "community_id"

    .line 3042
    invoke-virtual {p1, v5, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v5, "role"

    .line 3043
    invoke-virtual {p1, v5, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 3041
    invoke-virtual {v4, p1}, Lcom/imo/android/imoim/community/bearcommunity/dialog/CyVRRecommendDialog;->setArguments(Landroid/os/Bundle;)V

    .line 3045
    invoke-virtual {v4}, Lcom/imo/android/imoim/community/bearcommunity/dialog/CyVRRecommendDialog;->getDialog()Landroid/app/Dialog;

    move-result-object p1

    if-eqz p1, :cond_66

    invoke-virtual {p1, v0}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 3047
    :cond_66
    invoke-virtual {v4}, Lcom/imo/android/imoim/community/bearcommunity/dialog/CyVRRecommendDialog;->i()V

    .line 3048
    sget-object p1, Lcom/imo/android/imoim/community/bearcommunity/dialog/a;->b:Lcom/imo/android/imoim/community/bearcommunity/dialog/a;

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

    .line 4038
    invoke-static {}, Lcom/imo/android/imoim/community/bearcommunity/dialog/a;->a()Landroid/content/SharedPreferences;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    const/4 v0, 0x1

    invoke-interface {p1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V

    :cond_7e
    return-void
.end method