PublicServiceSearchFragment.smali

.class public Lio/rong/imkit/fragment/PublicServiceSearchFragment;
.super Lio/rong/imkit/fragment/DispatchResultFragment;
.source "PublicServiceSearchFragment.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;
    }
.end annotation


# static fields
.field private static final TAG:Ljava/lang/String; = "PublicServiceSearchFragment"


# instance fields
.field private mAdapter:Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;

.field private mEditText:Landroid/widget/EditText;

.field private mListView:Landroid/widget/ListView;

.field private mLoadingDialogFragment:Lio/rong/imkit/widget/LoadingDialogFragment;

.field private mSearchBtn:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .registers 1

    .line 1
    invoke-direct {p0}, Lio/rong/imkit/fragment/DispatchResultFragment;-><init>()V

    return-void
.end method

.method static synthetic access$000(Lio/rong/imkit/fragment/PublicServiceSearchFragment;)Lio/rong/imkit/widget/LoadingDialogFragment;
    .registers 1

    .line 1
    iget-object p0, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mLoadingDialogFragment:Lio/rong/imkit/widget/LoadingDialogFragment;

    return-object p0
.end method

.method static synthetic access$100(Lio/rong/imkit/fragment/PublicServiceSearchFragment;)Landroid/widget/EditText;
    .registers 1

    .line 1
    iget-object p0, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mEditText:Landroid/widget/EditText;

    return-object p0
.end method

.method static synthetic access$200(Lio/rong/imkit/fragment/PublicServiceSearchFragment;)Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;
    .registers 1

    .line 1
    iget-object p0, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mAdapter:Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;

    return-object p0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)Z
    .registers 2

    const/4 p1, 0x0

    return p1
.end method

.method protected initFragment(Landroid/net/Uri;)V
    .registers 2

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .registers 5

    .line 1
    sget p3, Lio/rong/imkit/R$layout;->rc_fr_public_service_search:I

    const/4 v0, 0x0

    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 2
    sget p2, Lio/rong/imkit/R$id;->rc_search_ed:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/EditText;

    iput-object p2, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mEditText:Landroid/widget/EditText;

    .line 3
    sget p2, Lio/rong/imkit/R$id;->rc_search_btn:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/Button;

    iput-object p2, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mSearchBtn:Landroid/widget/Button;

    .line 4
    sget p2, Lio/rong/imkit/R$id;->rc_search_list:I

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ListView;

    iput-object p2, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mListView:Landroid/widget/ListView;

    .line 5
    invoke-static {}, Lio/rong/imkit/RongContext;->getInstance()Lio/rong/imkit/RongContext;

    move-result-object p2

    invoke-virtual {p2}, Lio/rong/imkit/RongContext;->getEventBus()Lio/rong/eventbus/EventBus;

    move-result-object p2

    invoke-virtual {p2, p0}, Lio/rong/eventbus/EventBus;->register(Ljava/lang/Object;)V

    return-object p1
.end method

.method public onDestroy()V
    .registers 2

    .line 1
    invoke-static {}, Lio/rong/imkit/RongContext;->getInstance()Lio/rong/imkit/RongContext;

    move-result-object v0

    invoke-virtual {v0}, Lio/rong/imkit/RongContext;->getEventBus()Lio/rong/eventbus/EventBus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lio/rong/eventbus/EventBus;->unregister(Ljava/lang/Object;)V

    .line 2
    invoke-super {p0}, Lio/rong/imkit/fragment/BaseFragment;->onDestroy()V

    return-void
.end method

.method public onEventMainThread(Lio/rong/imkit/model/Event$PublicServiceFollowableEvent;)V
    .registers 4

    if-eqz p1, :cond_29

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_29

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "onEventMainThread PublicAccountIsFollowEvent, follow="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lio/rong/imkit/model/Event$PublicServiceFollowableEvent;->isFollow()Z

    move-result p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "PublicServiceSearchFragment"

    invoke-static {v0, p1}, Lio/rong/common/RLog;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    invoke-virtual {p1}, Landroid/app/Activity;->finish()V

    :cond_29
    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .registers 3

    .line 1
    invoke-super {p0, p1, p2}, Lio/rong/imkit/fragment/UriFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget p2, Lio/rong/imkit/R$string;->rc_notice_data_is_loading:I

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    const-string p2, ""

    invoke-static {p2, p1}, Lio/rong/imkit/widget/LoadingDialogFragment;->newInstance(Ljava/lang/String;Ljava/lang/String;)Lio/rong/imkit/widget/LoadingDialogFragment;

    move-result-object p1

    iput-object p1, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mLoadingDialogFragment:Lio/rong/imkit/widget/LoadingDialogFragment;

    .line 3
    iget-object p1, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mSearchBtn:Landroid/widget/Button;

    new-instance p2, Lio/rong/imkit/fragment/PublicServiceSearchFragment$1;

    invoke-direct {p2, p0}, Lio/rong/imkit/fragment/PublicServiceSearchFragment$1;-><init>(Lio/rong/imkit/fragment/PublicServiceSearchFragment;)V

    invoke-virtual {p1, p2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 4
    new-instance p1, Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    invoke-direct {p1, p0, p2}, Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;-><init>(Lio/rong/imkit/fragment/PublicServiceSearchFragment;Landroid/content/Context;)V

    iput-object p1, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mAdapter:Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;

    .line 5
    iget-object p1, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mListView:Landroid/widget/ListView;

    iget-object p2, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mAdapter:Lio/rong/imkit/fragment/PublicServiceSearchFragment$PublicServiceListAdapter;

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 6
    iget-object p1, p0, Lio/rong/imkit/fragment/PublicServiceSearchFragment;->mListView:Landroid/widget/ListView;

    new-instance p2, Lio/rong/imkit/fragment/PublicServiceSearchFragment$2;

    invoke-direct {p2, p0}, Lio/rong/imkit/fragment/PublicServiceSearchFragment$2;-><init>(Lio/rong/imkit/fragment/PublicServiceSearchFragment;)V

    invoke-virtual {p1, p2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method