apkfuckery/com.discord/smali/androidx/lifecycle/ReportFragment.smali
2019-02-04 21:29:01 +01:00

265 lines
8.1 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:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
}
.end annotation
# static fields
.field private static final REPORT_FRAGMENT_TAG:Ljava/lang/String; = "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag"
# instance fields
.field private 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 private dispatch(Landroidx/lifecycle/Lifecycle$Event;)V
.locals 2
invoke-virtual {p0}, Landroidx/lifecycle/ReportFragment;->getActivity()Landroid/app/Activity;
move-result-object v0
instance-of v1, v0, Landroidx/lifecycle/LifecycleRegistryOwner;
if-eqz v1, :cond_0
check-cast v0, Landroidx/lifecycle/LifecycleRegistryOwner;
invoke-interface {v0}, Landroidx/lifecycle/LifecycleRegistryOwner;->getLifecycle()Landroidx/lifecycle/LifecycleRegistry;
move-result-object v0
invoke-virtual {v0, p1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
:cond_0
instance-of v1, v0, Landroidx/lifecycle/LifecycleOwner;
if-eqz v1, :cond_1
check-cast v0, Landroidx/lifecycle/LifecycleOwner;
invoke-interface {v0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
move-result-object v0
instance-of v1, v0, Landroidx/lifecycle/LifecycleRegistry;
if-eqz v1, :cond_1
check-cast v0, Landroidx/lifecycle/LifecycleRegistry;
invoke-virtual {v0, p1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
:cond_1
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 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
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 v0
if-nez v0, :cond_0
invoke-virtual {p0}, Landroid/app/FragmentManager;->beginTransaction()Landroid/app/FragmentTransaction;
move-result-object v0
new-instance v1, Landroidx/lifecycle/ReportFragment;
invoke-direct {v1}, Landroidx/lifecycle/ReportFragment;-><init>()V
const-string v2, "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag"
invoke-virtual {v0, v1, v2}, 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_0
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 setProcessListener(Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;)V
.locals 0
iput-object p1, p0, Landroidx/lifecycle/ReportFragment;->mProcessListener:Landroidx/lifecycle/ReportFragment$ActivityInitializationListener;
return-void
.end method