BaseProfileFragment.smali
.class public abstract Lcom/imo/android/imoim/profile/BaseProfileFragment;
.super Lcom/imo/android/imoim/fragments/IMOFragment;
.source "SourceFile"
# instance fields
.field a:I
.field private b:Landroid/view/View;
# direct methods
.method public constructor <init>()V
.registers 2
.line 18
invoke-direct {p0}, Lcom/imo/android/imoim/fragments/IMOFragment;-><init>()V
const/4 v0, -0x1
.line 27
iput v0, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a:I
return-void
.end method
.method private c()Z
.registers 2
.line 56
iget-object v0, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v0
if-nez v0, :cond_13
iget-object v0, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
invoke-static {v0}, Landroidx/core/view/ViewCompat;->isAttachedToWindow(Landroid/view/View;)Z
move-result v0
if-eqz v0, :cond_11
goto :goto_13
:cond_11
const/4 v0, 0x0
return v0
:cond_13
:goto_13
const/4 v0, 0x1
return v0
.end method
# virtual methods
.method public abstract a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
.end method
.method public abstract a(Landroid/view/View;)V
.end method
.method public a(Landroid/view/View;I)V
.registers 4
.line 96
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
move-result v0
if-eq v0, p2, :cond_9
.line 97
invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V
:cond_9
return-void
.end method
.method protected final a(Lcom/imo/android/imoim/profile/BaseProfileFragment;)V
.registers 8
.line 1079
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
check-cast v0, Lcom/imo/android/imoim/profile/ImoUserProfileActivity;
if-eqz v0, :cond_37
.line 1480
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
.line 1481
invoke-virtual {v0}, Lcom/imo/android/imoim/profile/ImoUserProfileActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
.line 1482
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object v0
const v2, 0x7f010041
const v3, 0x7f010043
const v4, 0x7f010040
const v5, 0x7f010044
.line 1483
invoke-virtual {v0, v2, v3, v4, v5}, Landroidx/fragment/app/FragmentTransaction;->setCustomAnimations(IIII)Landroidx/fragment/app/FragmentTransaction;
move-result-object v0
const v2, 0x7f090604
.line 1488
invoke-virtual {v0, v2, p1, v1}, Landroidx/fragment/app/FragmentTransaction;->replace(ILandroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
move-result-object p1
.line 1489
invoke-virtual {p1, v1}, Landroidx/fragment/app/FragmentTransaction;->addToBackStack(Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
move-result-object p1
.line 1490
invoke-virtual {p1}, Landroidx/fragment/app/FragmentTransaction;->commitAllowingStateLoss()I
return-void
.line 74
:cond_37
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v0, "startFragment null:"
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const/4 v0, 0x1
const-string v1, "BaseProfileFragment"
.line 2079
invoke-static {v1, p1, v0}, Lcom/imo/android/imoim/util/bt;->a(Ljava/lang/String;Ljava/lang/String;Z)V
return-void
.end method
.method protected final b()V
.registers 4
.line 83
iget v0, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a:I
const/4 v1, 0x1
if-eq v0, v1, :cond_6
return-void
.line 3079
:cond_6
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
check-cast v0, Lcom/imo/android/imoim/profile/ImoUserProfileActivity;
if-eqz v0, :cond_24
.line 3468
invoke-virtual {v0}, Lcom/imo/android/imoim/profile/ImoUserProfileActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v2
invoke-virtual {v2}, Landroidx/fragment/app/FragmentManager;->getBackStackEntryCount()I
move-result v2
if-le v2, v1, :cond_20
.line 3469
invoke-virtual {v0}, Lcom/imo/android/imoim/profile/ImoUserProfileActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->popBackStackImmediate()Z
return-void
.line 3471
:cond_20
invoke-virtual {v0}, Lcom/imo/android/imoim/profile/ImoUserProfileActivity;->finish()V
return-void
.line 91
:cond_24
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v2, "onBackPressed null:"
invoke-virtual {v2, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v2, "BaseProfileFragment"
.line 4079
invoke-static {v2, v0, v1}, Lcom/imo/android/imoim/util/bt;->a(Ljava/lang/String;Ljava/lang/String;Z)V
return-void
.end method
.method public onCreateAnimation(IZI)Landroid/view/animation/Animation;
.registers 4
if-nez p2, :cond_1f
.line 112
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object p1
if-eqz p1, :cond_1f
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
move-result-object p1
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->isRemoving()Z
move-result p1
if-eqz p1, :cond_1f
.line 116
new-instance p1, Landroid/view/animation/AlphaAnimation;
const/high16 p2, 0x3f800000 # 1.0f
invoke-direct {p1, p2, p2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V
const-wide/16 p2, 0xc8
.line 117
invoke-virtual {p1, p2, p3}, Landroid/view/animation/Animation;->setDuration(J)V
return-object p1
:cond_1f
const/4 p1, 0x0
if-eqz p2, :cond_3d
.line 124
:try_start_22
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->getContext()Landroid/content/Context;
move-result-object p2
invoke-static {p2, p3}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object p1
:try_end_2a
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_22 .. :try_end_2a} :catch_2b
.catch Ljava/lang/RuntimeException; {:try_start_22 .. :try_end_2a} :catch_2b
goto :goto_2c
:catch_2b
nop
:goto_2c
if-eqz p1, :cond_37
.line 132
new-instance p2, Lcom/imo/android/imoim/profile/BaseProfileFragment$1;
invoke-direct {p2, p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment$1;-><init>(Lcom/imo/android/imoim/profile/BaseProfileFragment;)V
invoke-virtual {p1, p2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
goto :goto_3d
:cond_37
const/4 p2, 0x0
.line 4103
iput p2, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a:I
const/4 p2, 0x1
.line 4107
iput p2, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a:I
:cond_3d
:goto_3d
return-object p1
.end method
.method public final onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.registers 5
.line 32
iget-object p3, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
if-eqz p3, :cond_31
.line 33
invoke-direct {p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->c()Z
move-result p3
if-eqz p3, :cond_1f
.line 35
iget-object p3, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
invoke-virtual {p3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object p3
if-eqz p3, :cond_1f
.line 36
iget-object p3, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
invoke-virtual {p3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object p3
check-cast p3, Landroid/view/ViewGroup;
iget-object v0, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
invoke-virtual {p3, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
.line 40
:cond_1f
invoke-direct {p0}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->c()Z
move-result p3
if-eqz p3, :cond_2e
.line 42
invoke-virtual {p0, p1, p2}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
.line 43
invoke-virtual {p0, p1}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a(Landroid/view/View;)V
.line 46
:cond_2e
iget-object p1, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
return-object p1
.line 49
:cond_31
invoke-virtual {p0, p1, p2}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
.line 50
invoke-virtual {p0, p1}, Lcom/imo/android/imoim/profile/BaseProfileFragment;->a(Landroid/view/View;)V
.line 52
iget-object p1, p0, Lcom/imo/android/imoim/profile/BaseProfileFragment;->b:Landroid/view/View;
return-object p1
.end method
.method public final onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.registers 3
return-void
.end method