308 lines
7.7 KiB
Smali
308 lines
7.7 KiB
Smali
|
.class public abstract Landroidx/fragment/app/FragmentHostCallback;
|
||
|
.super Landroidx/fragment/app/FragmentContainer;
|
||
|
.source "FragmentHostCallback.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<E:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Landroidx/fragment/app/FragmentContainer;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final mActivity:Landroid/app/Activity;
|
||
|
|
||
|
.field private final mContext:Landroid/content/Context;
|
||
|
|
||
|
.field final mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
|
||
|
|
||
|
.field private final mHandler:Landroid/os/Handler;
|
||
|
|
||
|
.field private final mWindowAnimations:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroid/app/Activity;Landroid/content/Context;Landroid/os/Handler;I)V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Landroidx/fragment/app/FragmentContainer;-><init>()V
|
||
|
|
||
|
new-instance v0, Landroidx/fragment/app/FragmentManagerImpl;
|
||
|
|
||
|
invoke-direct {v0}, Landroidx/fragment/app/FragmentManagerImpl;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/fragment/app/FragmentHostCallback;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
|
||
|
|
||
|
iput-object p1, p0, Landroidx/fragment/app/FragmentHostCallback;->mActivity:Landroid/app/Activity;
|
||
|
|
||
|
const-string p1, "context == null"
|
||
|
|
||
|
invoke-static {p2, p1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Landroid/content/Context;
|
||
|
|
||
|
iput-object p1, p0, Landroidx/fragment/app/FragmentHostCallback;->mContext:Landroid/content/Context;
|
||
|
|
||
|
const-string p1, "handler == null"
|
||
|
|
||
|
invoke-static {p3, p1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Landroid/os/Handler;
|
||
|
|
||
|
iput-object p1, p0, Landroidx/fragment/app/FragmentHostCallback;->mHandler:Landroid/os/Handler;
|
||
|
|
||
|
iput p4, p0, Landroidx/fragment/app/FragmentHostCallback;->mWindowAnimations:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroid/os/Handler;I)V
|
||
|
.locals 1
|
||
|
|
||
|
instance-of v0, p1, Landroid/app/Activity;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Landroid/app/Activity;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-direct {p0, v0, p1, p2, p3}, Landroidx/fragment/app/FragmentHostCallback;-><init>(Landroid/app/Activity;Landroid/content/Context;Landroid/os/Handler;I)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>(Landroidx/fragment/app/FragmentActivity;)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p1, Landroidx/fragment/app/FragmentActivity;->mHandler:Landroid/os/Handler;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {p0, p1, p1, v0, v1}, Landroidx/fragment/app/FragmentHostCallback;-><init>(Landroid/app/Activity;Landroid/content/Context;Landroid/os/Handler;I)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method getActivity()Landroid/app/Activity;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/FragmentHostCallback;->mActivity:Landroid/app/Activity;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method getContext()Landroid/content/Context;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/FragmentHostCallback;->mContext:Landroid/content/Context;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method getFragmentManagerImpl()Landroidx/fragment/app/FragmentManagerImpl;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/FragmentHostCallback;->mFragmentManager:Landroidx/fragment/app/FragmentManagerImpl;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method getHandler()Landroid/os/Handler;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/FragmentHostCallback;->mHandler:Landroid/os/Handler;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method onAttachFragment(Landroidx/fragment/app/Fragment;)V
|
||
|
.locals 0
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onDump(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V
|
||
|
.locals 0
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onFindViewById(I)Landroid/view/View;
|
||
|
.locals 0
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public abstract onGetHost()Ljava/lang/Object;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()TE;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end method
|
||
|
|
||
|
.method public onGetLayoutInflater()Landroid/view/LayoutInflater;
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/FragmentHostCallback;->mContext:Landroid/content/Context;
|
||
|
|
||
|
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public onGetWindowAnimations()I
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p0, Landroidx/fragment/app/FragmentHostCallback;->mWindowAnimations:I
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public onHasView()Z
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public onHasWindowAnimations()Z
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public onRequestPermissionsFromFragment(Landroidx/fragment/app/Fragment;[Ljava/lang/String;I)V
|
||
|
.locals 0
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onShouldSaveFragmentState(Landroidx/fragment/app/Fragment;)Z
|
||
|
.locals 0
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public onShouldShowRequestPermissionRationale(Ljava/lang/String;)Z
|
||
|
.locals 0
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public onStartActivityFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/Intent;I)V
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/fragment/app/FragmentHostCallback;->onStartActivityFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onStartActivityFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V
|
||
|
.locals 0
|
||
|
|
||
|
const/4 p1, -0x1
|
||
|
|
||
|
if-ne p3, p1, :cond_0
|
||
|
|
||
|
iget-object p1, p0, Landroidx/fragment/app/FragmentHostCallback;->mContext:Landroid/content/Context;
|
||
|
|
||
|
invoke-virtual {p1, p2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
new-instance p1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string p2, "Starting activity with a requestCode requires a FragmentActivity host"
|
||
|
|
||
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public onStartIntentSenderFromFragment(Landroidx/fragment/app/Fragment;Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
|
||
|
.locals 9
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Landroid/content/IntentSender$SendIntentException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, -0x1
|
||
|
|
||
|
move v3, p3
|
||
|
|
||
|
if-ne v3, v0, :cond_0
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
iget-object v1, v0, Landroidx/fragment/app/FragmentHostCallback;->mActivity:Landroid/app/Activity;
|
||
|
|
||
|
move-object v2, p2
|
||
|
|
||
|
move v3, p3
|
||
|
|
||
|
move-object v4, p4
|
||
|
|
||
|
move v5, p5
|
||
|
|
||
|
move 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
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
move-object v0, p0
|
||
|
|
||
|
new-instance v1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v2, "Starting intent sender with a requestCode requires a FragmentActivity host"
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v1
|
||
|
.end method
|
||
|
|
||
|
.method public onSupportInvalidateOptionsMenu()V
|
||
|
.locals 0
|
||
|
|
||
|
return-void
|
||
|
.end method
|