apkfuckery/com.discord/smali/androidx/lifecycle/ReportFragment.smali
2020-07-08 16:44:49 +00:00

304 lines
9.3 KiB
Smali

.class public Landroidx/lifecycle/ReportFragment;
.super Landroid/app/Fragment;
.source "ReportFragment.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/lifecycle/ReportFragment$LifecycleCallbacks;,
Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
}
.end annotation
# static fields
.field public static final REPORT_FRAGMENT_TAG:Ljava/lang/String; = "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag"
# instance fields
.field public mProcessListener:Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroid/app/Fragment;-><init>()V
return-void
.end method
.method public static dispatch(Landroid/app/Activity;Landroidx/lifecycle/Lifecycle$Event;)V
.locals 1
.param p0 # Landroid/app/Activity;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/lifecycle/Lifecycle$Event;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
instance-of v0, p0, Landroidx/lifecycle/LifecycleRegistryOwner;
if-eqz v0, :cond_0
check-cast p0, Landroidx/lifecycle/LifecycleRegistryOwner;
invoke-interface {p0}, Landroidx/lifecycle/LifecycleRegistryOwner;->getLifecycle()Landroidx/lifecycle/LifecycleRegistry;
move-result-object p0
invoke-virtual {p0, p1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
:cond_0
instance-of v0, p0, Landroidx/lifecycle/LifecycleOwner;
if-eqz v0, :cond_1
check-cast p0, Landroidx/lifecycle/LifecycleOwner;
invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
move-result-object p0
instance-of v0, p0, Landroidx/lifecycle/LifecycleRegistry;
if-eqz v0, :cond_1
check-cast p0, Landroidx/lifecycle/LifecycleRegistry;
invoke-virtual {p0, p1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
:cond_1
return-void
.end method
.method private dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
.locals 2
.param p1 # Landroidx/lifecycle/Lifecycle$Event;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1d
if-ge v0, v1, :cond_0
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
move-result-object v0
invoke-static {v0, p1}, Landroidx/lifecycle/ReportFragment;->dispatch(Landroid/app/Activity;Landroidx/lifecycle/Lifecycle$Event;)V
:cond_0
return-void
.end method
.method private dispatchCreate(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
.locals 0
if-eqz p1, :cond_0
invoke-interface {p1}, Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;->onCreate()V
:cond_0
return-void
.end method
.method private dispatchResume(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
.locals 0
if-eqz p1, :cond_0
invoke-interface {p1}, Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;->onResume()V
:cond_0
return-void
.end method
.method private dispatchStart(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
.locals 0
if-eqz p1, :cond_0
invoke-interface {p1}, Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;->onStart()V
:cond_0
return-void
.end method
.method public static get(Landroid/app/Activity;)Landroidx/lifecycle/ReportFragment;
.locals 1
invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;
move-result-object p0
const-string v0, "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag"
invoke-virtual {p0, v0}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment;
move-result-object p0
check-cast p0, Landroidx/lifecycle/ReportFragment;
return-object p0
.end method
.method public static injectIfNeededIn(Landroid/app/Activity;)V
.locals 3
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1d
if-lt v0, v1, :cond_0
new-instance v0, Landroidx/lifecycle/ReportFragment$LifecycleCallbacks;
invoke-direct {v0}, Landroidx/lifecycle/ReportFragment$LifecycleCallbacks;-><init>()V
invoke-virtual {p0, v0}, Landroid/app/Activity;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
:cond_0
invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;
move-result-object p0
const-string v0, "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag"
invoke-virtual {p0, v0}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment;
move-result-object v1
if-nez v1, :cond_1
invoke-virtual {p0}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;
move-result-object v1
new-instance v2, Landroidx/lifecycle/ReportFragment;
invoke-direct {v2}, Landroidx/lifecycle/ReportFragment;-><init>()V
invoke-virtual {v1, v2, v0}, Landroid/app/FragmentTransaction;->add(Landroid/app/Fragment;Ljava/lang/String;)Landroid/app/FragmentTransaction;
move-result-object v0
invoke-virtual {v0}, Landroid/app/FragmentTransaction;->commit()I
invoke-virtual {p0}, Landroid/app/FragmentManager;->executePendingTransactions()Z
:cond_1
return-void
.end method
# virtual methods
.method public onActivityCreated(Landroid/os/Bundle;)V
.locals 0
invoke-super {p0, p1}, Landroid/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V
iget-object p1, p0, Landroidx/lifecycle/ReportFragment;->mProcessListener:Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
invoke-direct {p0, p1}, Landroidx/lifecycle/ReportFragment;->dispatchCreate(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
sget-object p1, Landroidx/lifecycle/Lifecycle$Event;->ON_CREATE:Landroidx/lifecycle/Lifecycle$Event;
invoke-direct {p0, p1}, Landroidx/lifecycle/ReportFragment;->dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public onDestroy()V
.locals 1
invoke-super {p0}, Landroid/app/Fragment;->onDestroy()V
sget-object v0, Landroidx/lifecycle/Lifecycle$Event;->ON_DESTROY:Landroidx/lifecycle/Lifecycle$Event;
invoke-direct {p0, v0}, Landroidx/lifecycle/ReportFragment;->dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
const/4 v0, 0x0
iput-object v0, p0, Landroidx/lifecycle/ReportFragment;->mProcessListener:Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
return-void
.end method
.method public onPause()V
.locals 1
invoke-super {p0}, Landroid/app/Fragment;->onPause()V
sget-object v0, Landroidx/lifecycle/Lifecycle$Event;->ON_PAUSE:Landroidx/lifecycle/Lifecycle$Event;
invoke-direct {p0, v0}, Landroidx/lifecycle/ReportFragment;->dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public onResume()V
.locals 1
invoke-super {p0}, Landroid/app/Fragment;->onResume()V
iget-object v0, p0, Landroidx/lifecycle/ReportFragment;->mProcessListener:Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
invoke-direct {p0, v0}, Landroidx/lifecycle/ReportFragment;->dispatchResume(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
sget-object v0, Landroidx/lifecycle/Lifecycle$Event;->ON_RESUME:Landroidx/lifecycle/Lifecycle$Event;
invoke-direct {p0, v0}, Landroidx/lifecycle/ReportFragment;->dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public onStart()V
.locals 1
invoke-super {p0}, Landroid/app/Fragment;->onStart()V
iget-object v0, p0, Landroidx/lifecycle/ReportFragment;->mProcessListener:Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
invoke-direct {p0, v0}, Landroidx/lifecycle/ReportFragment;->dispatchStart(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
sget-object v0, Landroidx/lifecycle/Lifecycle$Event;->ON_START:Landroidx/lifecycle/Lifecycle$Event;
invoke-direct {p0, v0}, Landroidx/lifecycle/ReportFragment;->dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public onStop()V
.locals 1
invoke-super {p0}, Landroid/app/Fragment;->onStop()V
sget-object v0, Landroidx/lifecycle/Lifecycle$Event;->ON_STOP:Landroidx/lifecycle/Lifecycle$Event;
invoke-direct {p0, v0}, Landroidx/lifecycle/ReportFragment;->dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public setProcessListener(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
.locals 0
iput-object p1, p0, Landroidx/lifecycle/ReportFragment;->mProcessListener:Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
return-void
.end method