You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.3 KiB
128 lines
3.3 KiB
.class public Lcom/facebook/internal/FragmentWrapper; |
|
.super Ljava/lang/Object; |
|
.source "FragmentWrapper.java" |
|
|
|
|
|
# instance fields |
|
.field private nativeFragment:Landroid/app/Fragment; |
|
|
|
.field private supportFragment:Landroid/support/v4/app/Fragment; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>(Landroid/app/Fragment;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 38 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 39 |
|
const-string v0, "fragment" |
|
|
|
invoke-static {p1, v0}, Lcom/facebook/internal/Validate;->notNull(Ljava/lang/Object;Ljava/lang/String;)V |
|
|
|
.line 40 |
|
iput-object p1, p0, Lcom/facebook/internal/FragmentWrapper;->nativeFragment:Landroid/app/Fragment; |
|
|
|
.line 41 |
|
return-void |
|
.end method |
|
|
|
.method public constructor <init>(Landroid/support/v4/app/Fragment;)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 33 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 34 |
|
const-string v0, "fragment" |
|
|
|
invoke-static {p1, v0}, Lcom/facebook/internal/Validate;->notNull(Ljava/lang/Object;Ljava/lang/String;)V |
|
|
|
.line 35 |
|
iput-object p1, p0, Lcom/facebook/internal/FragmentWrapper;->supportFragment:Landroid/support/v4/app/Fragment; |
|
|
|
.line 36 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public final getActivity()Landroid/app/Activity; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 69 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->supportFragment:Landroid/support/v4/app/Fragment; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 70 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->supportFragment:Landroid/support/v4/app/Fragment; |
|
|
|
invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity; |
|
|
|
move-result-object v0 |
|
|
|
.line 72 |
|
:goto_0 |
|
return-object v0 |
|
|
|
:cond_0 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->nativeFragment:Landroid/app/Fragment; |
|
|
|
invoke-virtual {v0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public getNativeFragment()Landroid/app/Fragment; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 44 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->nativeFragment:Landroid/app/Fragment; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public getSupportFragment()Landroid/support/v4/app/Fragment; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 48 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->supportFragment:Landroid/support/v4/app/Fragment; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public startActivityForResult(Landroid/content/Intent;I)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 56 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->supportFragment:Landroid/support/v4/app/Fragment; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 57 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->supportFragment:Landroid/support/v4/app/Fragment; |
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/support/v4/app/Fragment;->startActivityForResult(Landroid/content/Intent;I)V |
|
|
|
.line 61 |
|
:goto_0 |
|
return-void |
|
|
|
.line 59 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/facebook/internal/FragmentWrapper;->nativeFragment:Landroid/app/Fragment; |
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/app/Fragment;->startActivityForResult(Landroid/content/Intent;I)V |
|
|
|
goto :goto_0 |
|
.end method
|
|
|