BaseTabFragment.smali

.class public abstract Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;
.super Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T::",
        "Lsg/bigo/core/mvp/presenter/a;",
        ">",
        "Lcom/imo/android/imoim/feeds/ui/AppBaseFragment<",
        "TT;>;"
    }
.end annotation


# instance fields
.field private c:Z

.field protected d:Z

.field public e:Z

.field protected final f:Ljava/lang/String;


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

    .line 39
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;-><init>()V

    const/4 v0, 0x0

    .line 33
    iput-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->c:Z

    .line 34
    iput-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->d:Z

    .line 35
    iput-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e:Z

    .line 40
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->f:Ljava/lang/String;

    return-void
.end method

.method private e()V
    .registers 4

    .line 126
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_11

    .line 127
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, ""

    const-string v2, "tag"

    invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    :cond_11
    return-void
.end method


# virtual methods
.method public a(Z)V
    .registers 2

    .line 175
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e()V

    .line 176
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e:Z

    if-eqz p1, :cond_11

    .line 177
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->d:Z

    if-nez p1, :cond_11

    const/4 p1, 0x1

    .line 178
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->d:Z

    .line 179
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->f()V

    :cond_11
    return-void
.end method

.method protected f()V
    .registers 1

    .line 165
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e()V

    return-void
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .registers 2

    .line 93
    invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;->onActivityCreated(Landroid/os/Bundle;)V

    .line 1147
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e()V

    .line 95
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getUserVisibleHint()Z

    move-result p1

    if-eqz p1, :cond_1f

    .line 97
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getParentFragment()Landroidx/fragment/app/Fragment;

    move-result-object p1

    if-eqz p1, :cond_1f

    .line 98
    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getUserVisibleHint()Z

    move-result p1

    if-nez p1, :cond_1f

    const/4 p1, 0x1

    .line 99
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->c:Z

    const/4 p1, 0x0

    .line 100
    invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;->setUserVisibleHint(Z)V

    :cond_1f
    return-void
.end method

.method public onPause()V
    .registers 2

    .line 116
    invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;->onPause()V

    .line 117
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->t()V

    .line 118
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getUserVisibleHint()Z

    move-result v0

    if-eqz v0, :cond_10

    const/4 v0, 0x0

    .line 119
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->a(Z)V

    :cond_10
    return-void
.end method

.method public onResume()V
    .registers 2

    .line 107
    invoke-super {p0}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;->onResume()V

    .line 108
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->s()V

    .line 109
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getUserVisibleHint()Z

    move-result v0

    if-eqz v0, :cond_10

    const/4 v0, 0x1

    .line 110
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->a(Z)V

    :cond_10
    return-void
.end method

.method protected s()V
    .registers 1

    .line 152
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e()V

    return-void
.end method

.method public setUserVisibleHint(Z)V
    .registers 7

    .line 47
    invoke-super {p0, p1}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;->setUserVisibleHint(Z)V

    .line 48
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getParentFragment()Landroidx/fragment/app/Fragment;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz p1, :cond_19

    if-eqz v0, :cond_19

    .line 51
    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getUserVisibleHint()Z

    move-result v0

    if-nez v0, :cond_19

    .line 52
    iput-boolean v2, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->c:Z

    .line 53
    invoke-super {p0, v1}, Lcom/imo/android/imoim/feeds/ui/AppBaseFragment;->setUserVisibleHint(Z)V

    return-void

    .line 57
    :cond_19
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->isResumed()Z

    move-result v0

    if-eqz v0, :cond_22

    .line 58
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->a(Z)V

    .line 60
    :cond_22
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    if-eqz v0, :cond_75

    .line 62
    invoke-virtual {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->getFragments()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_75

    .line 63
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_39

    goto :goto_75

    .line 66
    :cond_39
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_3d
    :goto_3d
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_75

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroidx/fragment/app/Fragment;

    .line 67
    instance-of v4, v3, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;

    if-eqz v4, :cond_3d

    .line 70
    check-cast v3, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;

    if-eqz p1, :cond_69

    .line 72
    iget-boolean v4, v3, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->c:Z

    if-eqz v4, :cond_5b

    .line 73
    iput-boolean v1, v3, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->c:Z

    .line 74
    invoke-virtual {v3, v2}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->setUserVisibleHint(Z)V

    goto :goto_3d

    .line 77
    :cond_5b
    instance-of v4, v3, Lcom/imo/android/imoim/feeds/ui/user/profile/UserProfileFragment;

    if-eqz v4, :cond_3d

    invoke-virtual {v3}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getUserVisibleHint()Z

    move-result v4

    if-nez v4, :cond_3d

    .line 78
    invoke-virtual {v3, v2}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->setUserVisibleHint(Z)V

    goto :goto_3d

    .line 82
    :cond_69
    invoke-virtual {v3}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->getUserVisibleHint()Z

    move-result v4

    if-eqz v4, :cond_3d

    .line 83
    iput-boolean v2, v3, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->c:Z

    .line 84
    invoke-virtual {v3, v1}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->setUserVisibleHint(Z)V

    goto :goto_3d

    :cond_75
    :goto_75
    return-void
.end method

.method protected t()V
    .registers 1

    .line 157
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->e()V

    return-void
.end method

.method protected final v()Z
    .registers 2

    .line 185
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/home/base/BaseTabFragment;->d:Z

    return v0
.end method