187 lines
5.1 KiB
Smali
187 lines
5.1 KiB
Smali
.class public Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;
|
|
.super Ljava/lang/Object;
|
|
.source "FragmentManager.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/fragment/app/Fragment$OnStartEnterTransitionListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/fragment/app/FragmentManager;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "StartEnterTransitionListener"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final mIsBack:Z
|
|
|
|
.field public mNumPostponed:I
|
|
|
|
.field public final mRecord:Landroidx/fragment/app/BackStackRecord;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/fragment/app/BackStackRecord;Z)V
|
|
.locals 0
|
|
.param p1 # Landroidx/fragment/app/BackStackRecord;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-boolean p2, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mIsBack:Z
|
|
|
|
iput-object p1, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public cancelTransaction()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
|
|
|
|
iget-object v1, v0, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
iget-boolean v2, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mIsBack:Z
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {v1, v0, v2, v3, v3}, Landroidx/fragment/app/FragmentManager;->completeExecute(Landroidx/fragment/app/BackStackRecord;ZZZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public completeTransaction()V
|
|
.locals 5
|
|
|
|
iget v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mNumPostponed:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
|
|
|
|
iget-object v2, v2, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
invoke-virtual {v2}, Landroidx/fragment/app/FragmentManager;->getFragments()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_1
|
|
:goto_1
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroidx/fragment/app/Fragment;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v3, v4}, Landroidx/fragment/app/Fragment;->setOnStartEnterTransitionListener(Landroidx/fragment/app/Fragment$OnStartEnterTransitionListener;)V
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->isPostponed()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->startPostponedEnterTransition()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-object v2, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
|
|
|
|
iget-object v3, v2, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
iget-boolean v4, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mIsBack:Z
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
invoke-virtual {v3, v2, v4, v0, v1}, Landroidx/fragment/app/FragmentManager;->completeExecute(Landroidx/fragment/app/BackStackRecord;ZZZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isReady()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mNumPostponed:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public onStartEnterTransition()V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mNumPostponed:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mNumPostponed:I
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mRecord:Landroidx/fragment/app/BackStackRecord;
|
|
|
|
iget-object v0, v0, Landroidx/fragment/app/BackStackRecord;->mManager:Landroidx/fragment/app/FragmentManager;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->scheduleCommit()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public startListening()V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mNumPostponed:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Landroidx/fragment/app/FragmentManager$StartEnterTransitionListener;->mNumPostponed:I
|
|
|
|
return-void
|
|
.end method
|