apkfuckery/com.discord/smali/androidx/fragment/app/FragmentActivity.smali
2020-10-01 23:55:10 +00:00

1854 lines
57 KiB
Smali

.class public Landroidx/fragment/app/FragmentActivity;
.super Landroidx/activity/ComponentActivity;
.source "FragmentActivity.java"
# interfaces
.implements Landroidx/core/app/ActivityCompat$OnRequestPermissionsResultCallback;
.implements Landroidx/core/app/ActivityCompat$RequestPermissionsRequestCodeValidator;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/fragment/app/FragmentActivity$HostCallbacks;
}
.end annotation
# static fields
.field public static final ALLOCATED_REQUEST_INDICIES_TAG:Ljava/lang/String; = "android:support:request_indicies"
.field public static final FRAGMENTS_TAG:Ljava/lang/String; = "android:support:fragments"
.field public static final MAX_NUM_PENDING_FRAGMENT_ACTIVITY_RESULTS:I = 0xfffe
.field public static final NEXT_CANDIDATE_REQUEST_INDEX_TAG:Ljava/lang/String; = "android:support:next_request_index"
.field public static final REQUEST_FRAGMENT_WHO_TAG:Ljava/lang/String; = "android:support:request_fragment_who"
.field public static final TAG:Ljava/lang/String; = "FragmentActivity"
# instance fields
.field public mCreated:Z
.field public final mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
.field public final mFragments:Landroidx/fragment/app/FragmentController;
.field public mNextCandidateRequestIndex:I
.field public mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/collection/SparseArrayCompat<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public mRequestedPermissionsFromFragment:Z
.field public mResumed:Z
.field public mStartedActivityFromFragment:Z
.field public mStartedIntentSenderFromFragment:Z
.field public mStopped:Z
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Landroidx/activity/ComponentActivity;-><init>()V
new-instance v0, Landroidx/fragment/app/FragmentActivity$HostCallbacks;
invoke-direct {v0, p0}, Landroidx/fragment/app/FragmentActivity$HostCallbacks;-><init>(Landroidx/fragment/app/FragmentActivity;)V
invoke-static {v0}, Landroidx/fragment/app/FragmentController;->createController(Landroidx/fragment/app/FragmentHostCallback;)Landroidx/fragment/app/FragmentController;
move-result-object v0
iput-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
new-instance v0, Landroidx/lifecycle/LifecycleRegistry;
invoke-direct {v0, p0}, Landroidx/lifecycle/LifecycleRegistry;-><init>(Landroidx/lifecycle/LifecycleOwner;)V
iput-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStopped:Z
return-void
.end method
.method public constructor <init>(I)V
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/LayoutRes;
.end annotation
.end param
.annotation build Landroidx/annotation/ContentView;
.end annotation
invoke-direct {p0, p1}, Landroidx/activity/ComponentActivity;-><init>(I)V
new-instance p1, Landroidx/fragment/app/FragmentActivity$HostCallbacks;
invoke-direct {p1, p0}, Landroidx/fragment/app/FragmentActivity$HostCallbacks;-><init>(Landroidx/fragment/app/FragmentActivity;)V
invoke-static {p1}, Landroidx/fragment/app/FragmentController;->createController(Landroidx/fragment/app/FragmentHostCallback;)Landroidx/fragment/app/FragmentController;
move-result-object p1
iput-object p1, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
new-instance p1, Landroidx/lifecycle/LifecycleRegistry;
invoke-direct {p1, p0}, Landroidx/lifecycle/LifecycleRegistry;-><init>(Landroidx/lifecycle/LifecycleOwner;)V
iput-object p1, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/fragment/app/FragmentActivity;->mStopped:Z
return-void
.end method
.method private allocateRequestIndex(Landroidx/fragment/app/Fragment;)I
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v0}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v0
const v1, 0xfffe
if-ge v0, v1, :cond_1
:goto_0
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
iget v2, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
invoke-virtual {v0, v2}, Landroidx/collection/SparseArrayCompat;->indexOfKey(I)I
move-result v0
if-ltz v0, :cond_0
iget v0, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
add-int/lit8 v0, v0, 0x1
rem-int/2addr v0, v1
iput v0, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
goto :goto_0
:cond_0
iget v0, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
iget-object v2, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
iget-object p1, p1, Landroidx/fragment/app/Fragment;->mWho:Ljava/lang/String;
invoke-virtual {v2, v0, p1}, Landroidx/collection/SparseArrayCompat;->put(ILjava/lang/Object;)V
iget p1, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
add-int/lit8 p1, p1, 0x1
rem-int/2addr p1, v1
iput p1, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
return v0
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Too many pending Fragment activity results."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public static checkForValidRequestCode(I)V
.locals 1
const/high16 v0, -0x10000
and-int/2addr p0, v0
if-nez p0, :cond_0
return-void
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Can only use lower 16 bits for requestCode"
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private markFragmentsCreated()V
.locals 2
:cond_0
invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
sget-object v1, Landroidx/lifecycle/Lifecycle$State;->CREATED:Landroidx/lifecycle/Lifecycle$State;
invoke-static {v0, v1}, Landroidx/fragment/app/FragmentActivity;->markState(Landroidx/fragment/app/FragmentManager;Landroidx/lifecycle/Lifecycle$State;)Z
move-result v0
if-nez v0, :cond_0
return-void
.end method
.method public static markState(Landroidx/fragment/app/FragmentManager;Landroidx/lifecycle/Lifecycle$State;)Z
.locals 5
invoke-virtual {p0}, Landroidx/fragment/app/FragmentManager;->getFragments()Ljava/util/List;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p0
const/4 v0, 0x0
:cond_0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_4
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/Fragment;
if-nez v1, :cond_1
goto :goto_0
:cond_1
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getHost()Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_2
invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v2
invoke-static {v2, p1}, Landroidx/fragment/app/FragmentActivity;->markState(Landroidx/fragment/app/FragmentManager;Landroidx/lifecycle/Lifecycle$State;)Z
move-result v2
or-int/2addr v0, v2
:cond_2
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mViewLifecycleOwner:Landroidx/fragment/app/FragmentViewLifecycleOwner;
const/4 v3, 0x1
if-eqz v2, :cond_3
invoke-virtual {v2}, Landroidx/fragment/app/FragmentViewLifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
move-result-object v2
invoke-virtual {v2}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State;
move-result-object v2
sget-object v4, Landroidx/lifecycle/Lifecycle$State;->STARTED:Landroidx/lifecycle/Lifecycle$State;
invoke-virtual {v2, v4}, Landroidx/lifecycle/Lifecycle$State;->isAtLeast(Landroidx/lifecycle/Lifecycle$State;)Z
move-result v2
if-eqz v2, :cond_3
iget-object v0, v1, Landroidx/fragment/app/Fragment;->mViewLifecycleOwner:Landroidx/fragment/app/FragmentViewLifecycleOwner;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentViewLifecycleOwner;->setCurrentState(Landroidx/lifecycle/Lifecycle$State;)V
const/4 v0, 0x1
:cond_3
iget-object v2, v1, Landroidx/fragment/app/Fragment;->mLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
invoke-virtual {v2}, Landroidx/lifecycle/LifecycleRegistry;->getCurrentState()Landroidx/lifecycle/Lifecycle$State;
move-result-object v2
sget-object v4, Landroidx/lifecycle/Lifecycle$State;->STARTED:Landroidx/lifecycle/Lifecycle$State;
invoke-virtual {v2, v4}, Landroidx/lifecycle/Lifecycle$State;->isAtLeast(Landroidx/lifecycle/Lifecycle$State;)Z
move-result v2
if-eqz v2, :cond_0
iget-object v0, v1, Landroidx/fragment/app/Fragment;->mLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
invoke-virtual {v0, p1}, Landroidx/lifecycle/LifecycleRegistry;->setCurrentState(Landroidx/lifecycle/Lifecycle$State;)V
const/4 v0, 0x1
goto :goto_0
:cond_4
return v0
.end method
# virtual methods
.method public final dispatchFragmentsOnCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
.locals 1
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0, p1, p2, p3, p4}, Landroidx/fragment/app/FragmentController;->onCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object p1
return-object p1
.end method
.method public dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
.locals 2
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/io/FileDescriptor;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Ljava/io/PrintWriter;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # [Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-super {p0, p1, p2, p3, p4}, Landroid/app/Activity;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
invoke-virtual {p3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v0, "Local FragmentActivity "
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v0, " State:"
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->println(Ljava/lang/String;)V
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {p3, v0}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
const-string v1, "mCreated="
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v1, p0, Landroidx/fragment/app/FragmentActivity;->mCreated:Z
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Z)V
const-string v1, " mResumed="
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v1, p0, Landroidx/fragment/app/FragmentActivity;->mResumed:Z
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Z)V
const-string v1, " mStopped="
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
iget-boolean v1, p0, Landroidx/fragment/app/FragmentActivity;->mStopped:Z
invoke-virtual {p3, v1}, Ljava/io/PrintWriter;->print(Z)V
invoke-virtual {p0}, Landroid/app/Activity;->getApplication()Landroid/app/Application;
move-result-object v1
if-eqz v1, :cond_0
invoke-static {p0}, Landroidx/loader/app/LoaderManager;->getInstance(Landroidx/lifecycle/LifecycleOwner;)Landroidx/loader/app/LoaderManager;
move-result-object v1
invoke-virtual {v1, v0, p2, p3, p4}, Landroidx/loader/app/LoaderManager;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
invoke-virtual {v0, p1, p2, p3, p4}, Landroidx/fragment/app/FragmentManager;->dump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
return-void
.end method
.method public getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object v0
return-object v0
.end method
.method public getSupportLoaderManager()Landroidx/loader/app/LoaderManager;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
invoke-static {p0}, Landroidx/loader/app/LoaderManager;->getInstance(Landroidx/lifecycle/LifecycleOwner;)Landroidx/loader/app/LoaderManager;
move-result-object v0
return-object v0
.end method
.method public onActivityResult(IILandroid/content/Intent;)V
.locals 3
.param p3 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/CallSuper;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->noteStateNotSaved()V
shr-int/lit8 v0, p1, 0x10
if-eqz v0, :cond_2
add-int/lit8 v0, v0, -0x1
iget-object v1, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v1, v0}, Landroidx/collection/SparseArrayCompat;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
iget-object v2, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v2, v0}, Landroidx/collection/SparseArrayCompat;->remove(I)V
const-string v0, "FragmentActivity"
if-nez v1, :cond_0
const-string p1, "Activity result delivered for unknown Fragment."
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
:cond_0
iget-object v2, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v2, v1}, Landroidx/fragment/app/FragmentController;->findFragmentByWho(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v2
if-nez v2, :cond_1
const-string p1, "Activity result no fragment exists for who: "
invoke-static {p1, v1, v0}, Lf/e/c/a/a;->U(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_1
const v0, 0xffff
and-int/2addr p1, v0
invoke-virtual {v2, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V
:goto_0
return-void
:cond_2
invoke-static {}, Landroidx/core/app/ActivityCompat;->getPermissionCompatDelegate()Landroidx/core/app/ActivityCompat$PermissionCompatDelegate;
move-result-object v0
if-eqz v0, :cond_3
invoke-interface {v0, p0, p1, p2, p3}, Landroidx/core/app/ActivityCompat$PermissionCompatDelegate;->onActivityResult(Landroid/app/Activity;IILandroid/content/Intent;)Z
move-result v0
if-eqz v0, :cond_3
return-void
:cond_3
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V
return-void
.end method
.method public onAttachFragment(Landroidx/fragment/app/Fragment;)V
.locals 0
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
return-void
.end method
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
.locals 1
.param p1 # Landroid/content/res/Configuration;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-super {p0, p1}, Landroid/app/Activity;->onConfigurationChanged(Landroid/content/res/Configuration;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->noteStateNotSaved()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentController;->dispatchConfigurationChanged(Landroid/content/res/Configuration;)V
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 7
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroidx/fragment/app/FragmentController;->attachHost(Landroidx/fragment/app/Fragment;)V
const/4 v0, 0x0
if-eqz p1, :cond_2
const-string v1, "android:support:fragments"
invoke-virtual {p1, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v1
iget-object v2, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v2, v1}, Landroidx/fragment/app/FragmentController;->restoreSaveState(Landroid/os/Parcelable;)V
const-string v1, "android:support:next_request_index"
invoke-virtual {p1, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_2
invoke-virtual {p1, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
move-result v1
iput v1, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
const-string v1, "android:support:request_indicies"
invoke-virtual {p1, v1}, Landroid/os/Bundle;->getIntArray(Ljava/lang/String;)[I
move-result-object v1
const-string v2, "android:support:request_fragment_who"
invoke-virtual {p1, v2}, Landroid/os/Bundle;->getStringArray(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v2
if-eqz v1, :cond_1
if-eqz v2, :cond_1
array-length v3, v1
array-length v4, v2
if-eq v3, v4, :cond_0
goto :goto_1
:cond_0
new-instance v3, Landroidx/collection/SparseArrayCompat;
array-length v4, v1
invoke-direct {v3, v4}, Landroidx/collection/SparseArrayCompat;-><init>(I)V
iput-object v3, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
const/4 v3, 0x0
:goto_0
array-length v4, v1
if-ge v3, v4, :cond_2
iget-object v4, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
aget v5, v1, v3
aget-object v6, v2, v3
invoke-virtual {v4, v5, v6}, Landroidx/collection/SparseArrayCompat;->put(ILjava/lang/Object;)V
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
:goto_1
const-string v1, "FragmentActivity"
const-string v2, "Invalid requestCode mapping in savedInstanceState."
invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:cond_2
iget-object v1, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
if-nez v1, :cond_3
new-instance v1, Landroidx/collection/SparseArrayCompat;
invoke-direct {v1}, Landroidx/collection/SparseArrayCompat;-><init>()V
iput-object v1, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
iput v0, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
:cond_3
invoke-super {p0, p1}, Landroidx/activity/ComponentActivity;->onCreate(Landroid/os/Bundle;)V
iget-object p1, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
sget-object v0, Landroidx/lifecycle/Lifecycle$Event;->ON_CREATE:Landroidx/lifecycle/Lifecycle$Event;
invoke-virtual {p1, v0}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
iget-object p1, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentController;->dispatchCreate()V
return-void
.end method
.method public onCreatePanelMenu(ILandroid/view/Menu;)Z
.locals 2
.param p2 # Landroid/view/Menu;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
if-nez p1, :cond_0
invoke-super {p0, p1, p2}, Landroid/app/Activity;->onCreatePanelMenu(ILandroid/view/Menu;)Z
move-result p1
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {p0}, Landroid/app/Activity;->getMenuInflater()Landroid/view/MenuInflater;
move-result-object v1
invoke-virtual {v0, p2, v1}, Landroidx/fragment/app/FragmentController;->dispatchCreateOptionsMenu(Landroid/view/Menu;Landroid/view/MenuInflater;)Z
move-result p2
or-int/2addr p1, p2
return p1
:cond_0
invoke-super {p0, p1, p2}, Landroid/app/Activity;->onCreatePanelMenu(ILandroid/view/Menu;)Z
move-result p1
return p1
.end method
.method public onCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
.locals 1
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
invoke-virtual {p0, p1, p2, p3, p4}, Landroidx/fragment/app/FragmentActivity;->dispatchFragmentsOnCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object v0
if-nez v0, :cond_0
invoke-super {p0, p1, p2, p3, p4}, Landroid/app/Activity;->onCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object p1
return-object p1
:cond_0
return-object v0
.end method
.method public onCreateView(Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
const/4 v0, 0x0
invoke-virtual {p0, v0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->dispatchFragmentsOnCreateView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object v0
if-nez v0, :cond_0
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onCreateView(Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object p1
return-object p1
:cond_0
return-object v0
.end method
.method public onDestroy()V
.locals 2
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->dispatchDestroy()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
sget-object v1, Landroidx/lifecycle/Lifecycle$Event;->ON_DESTROY:Landroidx/lifecycle/Lifecycle$Event;
invoke-virtual {v0, v1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public onLowMemory()V
.locals 1
invoke-super {p0}, Landroid/app/Activity;->onLowMemory()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->dispatchLowMemory()V
return-void
.end method
.method public onMenuItemSelected(ILandroid/view/MenuItem;)Z
.locals 1
.param p2 # Landroid/view/MenuItem;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-super {p0, p1, p2}, Landroid/app/Activity;->onMenuItemSelected(ILandroid/view/MenuItem;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x1
return p1
:cond_0
if-eqz p1, :cond_2
const/4 v0, 0x6
if-eq p1, v0, :cond_1
const/4 p1, 0x0
return p1
:cond_1
iget-object p1, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {p1, p2}, Landroidx/fragment/app/FragmentController;->dispatchContextItemSelected(Landroid/view/MenuItem;)Z
move-result p1
return p1
:cond_2
iget-object p1, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {p1, p2}, Landroidx/fragment/app/FragmentController;->dispatchOptionsItemSelected(Landroid/view/MenuItem;)Z
move-result p1
return p1
.end method
.method public onMultiWindowModeChanged(Z)V
.locals 1
.annotation build Landroidx/annotation/CallSuper;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentController;->dispatchMultiWindowModeChanged(Z)V
return-void
.end method
.method public onNewIntent(Landroid/content/Intent;)V
.locals 0
.param p1 # Landroid/content/Intent;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
.annotation build Landroidx/annotation/CallSuper;
.end annotation
invoke-super {p0, p1}, Landroid/app/Activity;->onNewIntent(Landroid/content/Intent;)V
iget-object p1, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentController;->noteStateNotSaved()V
return-void
.end method
.method public onPanelClosed(ILandroid/view/Menu;)V
.locals 1
.param p2 # Landroid/view/Menu;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
if-eqz p1, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0, p2}, Landroidx/fragment/app/FragmentController;->dispatchOptionsMenuClosed(Landroid/view/Menu;)V
:goto_0
invoke-super {p0, p1, p2}, Landroid/app/Activity;->onPanelClosed(ILandroid/view/Menu;)V
return-void
.end method
.method public onPause()V
.locals 2
invoke-super {p0}, Landroid/app/Activity;->onPause()V
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mResumed:Z
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->dispatchPause()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
sget-object v1, Landroidx/lifecycle/Lifecycle$Event;->ON_PAUSE:Landroidx/lifecycle/Lifecycle$Event;
invoke-virtual {v0, v1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public onPictureInPictureModeChanged(Z)V
.locals 1
.annotation build Landroidx/annotation/CallSuper;
.end annotation
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0, p1}, Landroidx/fragment/app/FragmentController;->dispatchPictureInPictureModeChanged(Z)V
return-void
.end method
.method public onPostResume()V
.locals 0
invoke-super {p0}, Landroid/app/Activity;->onPostResume()V
invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->onResumeFragments()V
return-void
.end method
.method public onPrepareOptionsPanel(Landroid/view/View;Landroid/view/Menu;)Z
.locals 1
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/view/Menu;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v0, 0x0
invoke-super {p0, v0, p1, p2}, Landroid/app/Activity;->onPreparePanel(ILandroid/view/View;Landroid/view/Menu;)Z
move-result p1
return p1
.end method
.method public onPreparePanel(ILandroid/view/View;Landroid/view/Menu;)Z
.locals 0
.param p2 # Landroid/view/View;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroid/view/Menu;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
if-nez p1, :cond_0
invoke-virtual {p0, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onPrepareOptionsPanel(Landroid/view/View;Landroid/view/Menu;)Z
move-result p1
iget-object p2, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {p2, p3}, Landroidx/fragment/app/FragmentController;->dispatchPrepareOptionsMenu(Landroid/view/Menu;)Z
move-result p2
or-int/2addr p1, p2
return p1
:cond_0
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onPreparePanel(ILandroid/view/View;Landroid/view/Menu;)Z
move-result p1
return p1
.end method
.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V
.locals 4
.param p2 # [Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # [I
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->noteStateNotSaved()V
shr-int/lit8 v0, p1, 0x10
const v1, 0xffff
and-int/2addr v0, v1
if-eqz v0, :cond_2
add-int/lit8 v0, v0, -0x1
iget-object v2, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v2, v0}, Landroidx/collection/SparseArrayCompat;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
iget-object v3, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v3, v0}, Landroidx/collection/SparseArrayCompat;->remove(I)V
const-string v0, "FragmentActivity"
if-nez v2, :cond_0
const-string p1, "Activity result delivered for unknown Fragment."
invoke-static {v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
:cond_0
iget-object v3, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v3, v2}, Landroidx/fragment/app/FragmentController;->findFragmentByWho(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object v3
if-nez v3, :cond_1
const-string p1, "Activity result no fragment exists for who: "
invoke-static {p1, v2, v0}, Lf/e/c/a/a;->U(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_1
and-int/2addr p1, v1
invoke-virtual {v3, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V
:cond_2
:goto_0
return-void
.end method
.method public onResume()V
.locals 1
invoke-super {p0}, Landroid/app/Activity;->onResume()V
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mResumed:Z
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->noteStateNotSaved()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->execPendingActions()Z
return-void
.end method
.method public onResumeFragments()V
.locals 2
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
sget-object v1, Landroidx/lifecycle/Lifecycle$Event;->ON_RESUME:Landroidx/lifecycle/Lifecycle$Event;
invoke-virtual {v0, v1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->dispatchResume()V
return-void
.end method
.method public onSaveInstanceState(Landroid/os/Bundle;)V
.locals 4
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-super {p0, p1}, Landroidx/activity/ComponentActivity;->onSaveInstanceState(Landroid/os/Bundle;)V
invoke-direct {p0}, Landroidx/fragment/app/FragmentActivity;->markFragmentsCreated()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
sget-object v1, Landroidx/lifecycle/Lifecycle$Event;->ON_STOP:Landroidx/lifecycle/Lifecycle$Event;
invoke-virtual {v0, v1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->saveAllState()Landroid/os/Parcelable;
move-result-object v0
if-eqz v0, :cond_0
const-string v1, "android:support:fragments"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v0}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v0
if-lez v0, :cond_2
iget v0, p0, Landroidx/fragment/app/FragmentActivity;->mNextCandidateRequestIndex:I
const-string v1, "android:support:next_request_index"
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v0}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v0
new-array v0, v0, [I
iget-object v1, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v1}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v1
new-array v1, v1, [Ljava/lang/String;
const/4 v2, 0x0
:goto_0
iget-object v3, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v3}, Landroidx/collection/SparseArrayCompat;->size()I
move-result v3
if-ge v2, v3, :cond_1
iget-object v3, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v3, v2}, Landroidx/collection/SparseArrayCompat;->keyAt(I)I
move-result v3
aput v3, v0, v2
iget-object v3, p0, Landroidx/fragment/app/FragmentActivity;->mPendingFragmentActivityResults:Landroidx/collection/SparseArrayCompat;
invoke-virtual {v3, v2}, Landroidx/collection/SparseArrayCompat;->valueAt(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
aput-object v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
const-string v2, "android:support:request_indicies"
invoke-virtual {p1, v2, v0}, Landroid/os/Bundle;->putIntArray(Ljava/lang/String;[I)V
const-string v0, "android:support:request_fragment_who"
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putStringArray(Ljava/lang/String;[Ljava/lang/String;)V
:cond_2
return-void
.end method
.method public onStart()V
.locals 2
invoke-super {p0}, Landroid/app/Activity;->onStart()V
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStopped:Z
iget-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mCreated:Z
if-nez v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mCreated:Z
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->dispatchActivityCreated()V
:cond_0
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->noteStateNotSaved()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->execPendingActions()Z
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
sget-object v1, Landroidx/lifecycle/Lifecycle$Event;->ON_START:Landroidx/lifecycle/Lifecycle$Event;
invoke-virtual {v0, v1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->dispatchStart()V
return-void
.end method
.method public onStateNotSaved()V
.locals 1
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->noteStateNotSaved()V
return-void
.end method
.method public onStop()V
.locals 2
invoke-super {p0}, Landroid/app/Activity;->onStop()V
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStopped:Z
invoke-direct {p0}, Landroidx/fragment/app/FragmentActivity;->markFragmentsCreated()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragments:Landroidx/fragment/app/FragmentController;
invoke-virtual {v0}, Landroidx/fragment/app/FragmentController;->dispatchStop()V
iget-object v0, p0, Landroidx/fragment/app/FragmentActivity;->mFragmentLifecycleRegistry:Landroidx/lifecycle/LifecycleRegistry;
sget-object v1, Landroidx/lifecycle/Lifecycle$Event;->ON_STOP:Landroidx/lifecycle/Lifecycle$Event;
invoke-virtual {v0, v1}, Landroidx/lifecycle/LifecycleRegistry;->handleLifecycleEvent(Landroidx/lifecycle/Lifecycle$Event;)V
return-void
.end method
.method public requestPermissionsFromFragment(Landroidx/fragment/app/Fragment;[Ljava/lang/String;I)V
.locals 2
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # [Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, -0x1
if-ne p3, v0, :cond_0
invoke-static {p0, p2, p3}, Landroidx/core/app/ActivityCompat;->requestPermissions(Landroid/app/Activity;[Ljava/lang/String;I)V
return-void
:cond_0
invoke-static {p3}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
const/4 v0, 0x0
const/4 v1, 0x1
:try_start_0
iput-boolean v1, p0, Landroidx/fragment/app/FragmentActivity;->mRequestedPermissionsFromFragment:Z
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentActivity;->allocateRequestIndex(Landroidx/fragment/app/Fragment;)I
move-result p1
add-int/2addr p1, v1
shl-int/lit8 p1, p1, 0x10
const v1, 0xffff
and-int/2addr p3, v1
add-int/2addr p1, p3
invoke-static {p0, p2, p1}, Landroidx/core/app/ActivityCompat;->requestPermissions(Landroid/app/Activity;[Ljava/lang/String;I)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mRequestedPermissionsFromFragment:Z
return-void
:catchall_0
move-exception p1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mRequestedPermissionsFromFragment:Z
throw p1
.end method
.method public setEnterSharedElementCallback(Landroidx/core/app/SharedElementCallback;)V
.locals 0
.param p1 # Landroidx/core/app/SharedElementCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-static {p0, p1}, Landroidx/core/app/ActivityCompat;->setEnterSharedElementCallback(Landroid/app/Activity;Landroidx/core/app/SharedElementCallback;)V
return-void
.end method
.method public setExitSharedElementCallback(Landroidx/core/app/SharedElementCallback;)V
.locals 0
.param p1 # Landroidx/core/app/SharedElementCallback;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-static {p0, p1}, Landroidx/core/app/ActivityCompat;->setExitSharedElementCallback(Landroid/app/Activity;Landroidx/core/app/SharedElementCallback;)V
return-void
.end method
.method public startActivityForResult(Landroid/content/Intent;I)V
.locals 1
.param p1 # Landroid/content/Intent;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
iget-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStartedActivityFromFragment:Z
if-nez v0, :cond_0
const/4 v0, -0x1
if-eq p2, v0, :cond_0
invoke-static {p2}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
:cond_0
invoke-super {p0, p1, p2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
return-void
.end method
.method public startActivityForResult(Landroid/content/Intent;ILandroid/os/Bundle;)V
.locals 1
.param p1 # Landroid/content/Intent;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStartedActivityFromFragment:Z
if-nez v0, :cond_0
const/4 v0, -0x1
if-eq p2, v0, :cond_0
invoke-static {p2}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
:cond_0
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;ILandroid/os/Bundle;)V
return-void
.end method
.method public startActivityFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/Intent;I)V
.locals 1
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/Intent;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
const/4 v0, 0x0
invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/fragment/app/FragmentActivity;->startActivityFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V
return-void
.end method
.method public startActivityFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V
.locals 3
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/Intent;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStartedActivityFromFragment:Z
const/4 v1, -0x1
const/4 v2, 0x0
if-ne p3, v1, :cond_0
:try_start_0
invoke-static {p0, p2, v1, p4}, Landroidx/core/app/ActivityCompat;->startActivityForResult(Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iput-boolean v2, p0, Landroidx/fragment/app/FragmentActivity;->mStartedActivityFromFragment:Z
return-void
:cond_0
:try_start_1
invoke-static {p3}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentActivity;->allocateRequestIndex(Landroidx/fragment/app/Fragment;)I
move-result p1
add-int/2addr p1, v0
shl-int/lit8 p1, p1, 0x10
const v0, 0xffff
and-int/2addr p3, v0
add-int/2addr p1, p3
invoke-static {p0, p2, p1, p4}, Landroidx/core/app/ActivityCompat;->startActivityForResult(Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
iput-boolean v2, p0, Landroidx/fragment/app/FragmentActivity;->mStartedActivityFromFragment:Z
return-void
:catchall_0
move-exception p1
iput-boolean v2, p0, Landroidx/fragment/app/FragmentActivity;->mStartedActivityFromFragment:Z
throw p1
.end method
.method public startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;III)V
.locals 1
.param p1 # Landroid/content/IntentSender;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
.param p3 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/content/IntentSender$SendIntentException;
}
.end annotation
iget-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStartedIntentSenderFromFragment:Z
if-nez v0, :cond_0
const/4 v0, -0x1
if-eq p2, v0, :cond_0
invoke-static {p2}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
:cond_0
invoke-super/range {p0 .. p6}, Landroid/app/Activity;->startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;III)V
return-void
.end method
.method public startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
.locals 1
.param p1 # Landroid/content/IntentSender;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
.param p3 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p7 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/content/IntentSender$SendIntentException;
}
.end annotation
iget-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mStartedIntentSenderFromFragment:Z
if-nez v0, :cond_0
const/4 v0, -0x1
if-eq p2, v0, :cond_0
invoke-static {p2}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
:cond_0
invoke-super/range {p0 .. p7}, Landroid/app/Activity;->startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
return-void
.end method
.method public startIntentSenderFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
.locals 11
.param p1 # Landroidx/fragment/app/Fragment;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/IntentSender;
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.end param
.param p4 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p8 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/content/IntentSender$SendIntentException;
}
.end annotation
move-object v9, p0
move v0, p3
const/4 v1, 0x1
iput-boolean v1, v9, Landroidx/fragment/app/FragmentActivity;->mStartedIntentSenderFromFragment:Z
const/4 v2, -0x1
const/4 v10, 0x0
if-ne v0, v2, :cond_0
move-object v1, p0
move-object v2, p2
move v3, p3
move-object v4, p4
move/from16 v5, p5
move/from16 v6, p6
move/from16 v7, p7
move-object/from16 v8, p8
:try_start_0
invoke-static/range {v1 .. v8}, Landroidx/core/app/ActivityCompat;->startIntentSenderForResult(Landroid/app/Activity;Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iput-boolean v10, v9, Landroidx/fragment/app/FragmentActivity;->mStartedIntentSenderFromFragment:Z
return-void
:cond_0
:try_start_1
invoke-static {p3}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
invoke-direct {p0, p1}, Landroidx/fragment/app/FragmentActivity;->allocateRequestIndex(Landroidx/fragment/app/Fragment;)I
move-result v2
add-int/2addr v2, v1
shl-int/lit8 v1, v2, 0x10
const v2, 0xffff
and-int/2addr v0, v2
add-int v3, v1, v0
move-object v1, p0
move-object v2, p2
move-object v4, p4
move/from16 v5, p5
move/from16 v6, p6
move/from16 v7, p7
move-object/from16 v8, p8
invoke-static/range {v1 .. v8}, Landroidx/core/app/ActivityCompat;->startIntentSenderForResult(Landroid/app/Activity;Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
iput-boolean v10, v9, Landroidx/fragment/app/FragmentActivity;->mStartedIntentSenderFromFragment:Z
return-void
:catchall_0
move-exception v0
iput-boolean v10, v9, Landroidx/fragment/app/FragmentActivity;->mStartedIntentSenderFromFragment:Z
throw v0
.end method
.method public supportFinishAfterTransition()V
.locals 0
invoke-static {p0}, Landroidx/core/app/ActivityCompat;->finishAfterTransition(Landroid/app/Activity;)V
return-void
.end method
.method public supportInvalidateOptionsMenu()V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
invoke-virtual {p0}, Landroid/app/Activity;->invalidateOptionsMenu()V
return-void
.end method
.method public supportPostponeEnterTransition()V
.locals 0
invoke-static {p0}, Landroidx/core/app/ActivityCompat;->postponeEnterTransition(Landroid/app/Activity;)V
return-void
.end method
.method public supportStartPostponedEnterTransition()V
.locals 0
invoke-static {p0}, Landroidx/core/app/ActivityCompat;->startPostponedEnterTransition(Landroid/app/Activity;)V
return-void
.end method
.method public final validateRequestPermissionsRequestCode(I)V
.locals 1
iget-boolean v0, p0, Landroidx/fragment/app/FragmentActivity;->mRequestedPermissionsFromFragment:Z
if-nez v0, :cond_0
const/4 v0, -0x1
if-eq p1, v0, :cond_0
invoke-static {p1}, Landroidx/fragment/app/FragmentActivity;->checkForValidRequestCode(I)V
:cond_0
return-void
.end method