apkfuckery/com.discord/smali/androidx/transition/FragmentTransitionSupport.smali
2020-11-21 22:11:07 +00:00

669 lines
17 KiB
Smali

.class public Landroidx/transition/FragmentTransitionSupport;
.super Landroidx/fragment/app/FragmentTransitionImpl;
.source "FragmentTransitionSupport.java"
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"RestrictedApi"
}
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroidx/fragment/app/FragmentTransitionImpl;-><init>()V
return-void
.end method
.method private static hasSimpleTarget(Landroidx/transition/Transition;)Z
.locals 1
invoke-virtual {p0}, Landroidx/transition/Transition;->getTargetIds()Ljava/util/List;
move-result-object v0
invoke-static {v0}, Landroidx/fragment/app/FragmentTransitionImpl;->isNullOrEmpty(Ljava/util/List;)Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {p0}, Landroidx/transition/Transition;->getTargetNames()Ljava/util/List;
move-result-object v0
invoke-static {v0}, Landroidx/fragment/app/FragmentTransitionImpl;->isNullOrEmpty(Ljava/util/List;)Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {p0}, Landroidx/transition/Transition;->getTargetTypes()Ljava/util/List;
move-result-object p0
invoke-static {p0}, Landroidx/fragment/app/FragmentTransitionImpl;->isNullOrEmpty(Ljava/util/List;)Z
move-result p0
if-nez p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
# virtual methods
.method public addTarget(Ljava/lang/Object;Landroid/view/View;)V
.locals 0
if-eqz p1, :cond_0
check-cast p1, Landroidx/transition/Transition;
invoke-virtual {p1, p2}, Landroidx/transition/Transition;->addTarget(Landroid/view/View;)Landroidx/transition/Transition;
:cond_0
return-void
.end method
.method public addTargets(Ljava/lang/Object;Ljava/util/ArrayList;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
check-cast p1, Landroidx/transition/Transition;
if-nez p1, :cond_0
return-void
:cond_0
instance-of v0, p1, Landroidx/transition/TransitionSet;
const/4 v1, 0x0
if-eqz v0, :cond_1
check-cast p1, Landroidx/transition/TransitionSet;
invoke-virtual {p1}, Landroidx/transition/TransitionSet;->getTransitionCount()I
move-result v0
:goto_0
if-ge v1, v0, :cond_2
invoke-virtual {p1, v1}, Landroidx/transition/TransitionSet;->getTransitionAt(I)Landroidx/transition/Transition;
move-result-object v2
invoke-virtual {p0, v2, p2}, Landroidx/transition/FragmentTransitionSupport;->addTargets(Ljava/lang/Object;Ljava/util/ArrayList;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
invoke-static {p1}, Landroidx/transition/FragmentTransitionSupport;->hasSimpleTarget(Landroidx/transition/Transition;)Z
move-result v0
if-nez v0, :cond_2
invoke-virtual {p1}, Landroidx/transition/Transition;->getTargets()Ljava/util/List;
move-result-object v0
invoke-static {v0}, Landroidx/fragment/app/FragmentTransitionImpl;->isNullOrEmpty(Ljava/util/List;)Z
move-result v0
if-eqz v0, :cond_2
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result v0
:goto_1
if-ge v1, v0, :cond_2
invoke-virtual {p2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/view/View;
invoke-virtual {p1, v2}, Landroidx/transition/Transition;->addTarget(Landroid/view/View;)Landroidx/transition/Transition;
add-int/lit8 v1, v1, 0x1
goto :goto_1
:cond_2
return-void
.end method
.method public beginDelayedTransition(Landroid/view/ViewGroup;Ljava/lang/Object;)V
.locals 0
check-cast p2, Landroidx/transition/Transition;
invoke-static {p1, p2}, Landroidx/transition/TransitionManager;->beginDelayedTransition(Landroid/view/ViewGroup;Landroidx/transition/Transition;)V
return-void
.end method
.method public canHandle(Ljava/lang/Object;)Z
.locals 0
instance-of p1, p1, Landroidx/transition/Transition;
return p1
.end method
.method public cloneTransition(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
if-eqz p1, :cond_0
check-cast p1, Landroidx/transition/Transition;
invoke-virtual {p1}, Landroidx/transition/Transition;->clone()Landroidx/transition/Transition;
move-result-object p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return-object p1
.end method
.method public mergeTransitionsInSequence(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
check-cast p1, Landroidx/transition/Transition;
check-cast p2, Landroidx/transition/Transition;
check-cast p3, Landroidx/transition/Transition;
if-eqz p1, :cond_0
if-eqz p2, :cond_0
new-instance v0, Landroidx/transition/TransitionSet;
invoke-direct {v0}, Landroidx/transition/TransitionSet;-><init>()V
invoke-virtual {v0, p1}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
move-result-object p1
invoke-virtual {p1, p2}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
move-result-object p1
const/4 p2, 0x1
invoke-virtual {p1, p2}, Landroidx/transition/TransitionSet;->setOrdering(I)Landroidx/transition/TransitionSet;
move-result-object p1
goto :goto_0
:cond_0
if-eqz p1, :cond_1
goto :goto_0
:cond_1
if-eqz p2, :cond_2
move-object p1, p2
goto :goto_0
:cond_2
const/4 p1, 0x0
:goto_0
if-eqz p3, :cond_4
new-instance p2, Landroidx/transition/TransitionSet;
invoke-direct {p2}, Landroidx/transition/TransitionSet;-><init>()V
if-eqz p1, :cond_3
invoke-virtual {p2, p1}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
:cond_3
invoke-virtual {p2, p3}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
return-object p2
:cond_4
return-object p1
.end method
.method public mergeTransitionsTogether(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
new-instance v0, Landroidx/transition/TransitionSet;
invoke-direct {v0}, Landroidx/transition/TransitionSet;-><init>()V
if-eqz p1, :cond_0
check-cast p1, Landroidx/transition/Transition;
invoke-virtual {v0, p1}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
:cond_0
if-eqz p2, :cond_1
check-cast p2, Landroidx/transition/Transition;
invoke-virtual {v0, p2}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
:cond_1
if-eqz p3, :cond_2
check-cast p3, Landroidx/transition/Transition;
invoke-virtual {v0, p3}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
:cond_2
return-object v0
.end method
.method public removeTarget(Ljava/lang/Object;Landroid/view/View;)V
.locals 0
if-eqz p1, :cond_0
check-cast p1, Landroidx/transition/Transition;
invoke-virtual {p1, p2}, Landroidx/transition/Transition;->removeTarget(Landroid/view/View;)Landroidx/transition/Transition;
:cond_0
return-void
.end method
.method public replaceTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
check-cast p1, Landroidx/transition/Transition;
instance-of v0, p1, Landroidx/transition/TransitionSet;
const/4 v1, 0x0
if-eqz v0, :cond_0
check-cast p1, Landroidx/transition/TransitionSet;
invoke-virtual {p1}, Landroidx/transition/TransitionSet;->getTransitionCount()I
move-result v0
:goto_0
if-ge v1, v0, :cond_3
invoke-virtual {p1, v1}, Landroidx/transition/TransitionSet;->getTransitionAt(I)Landroidx/transition/Transition;
move-result-object v2
invoke-virtual {p0, v2, p2, p3}, Landroidx/transition/FragmentTransitionSupport;->replaceTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
invoke-static {p1}, Landroidx/transition/FragmentTransitionSupport;->hasSimpleTarget(Landroidx/transition/Transition;)Z
move-result v0
if-nez v0, :cond_3
invoke-virtual {p1}, Landroidx/transition/Transition;->getTargets()Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v2
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result v3
if-ne v2, v3, :cond_3
invoke-interface {v0, p2}, Ljava/util/List;->containsAll(Ljava/util/Collection;)Z
move-result v0
if-eqz v0, :cond_3
if-nez p3, :cond_1
const/4 v0, 0x0
goto :goto_1
:cond_1
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
move-result v0
:goto_1
if-ge v1, v0, :cond_2
invoke-virtual {p3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroid/view/View;
invoke-virtual {p1, v2}, Landroidx/transition/Transition;->addTarget(Landroid/view/View;)Landroidx/transition/Transition;
add-int/lit8 v1, v1, 0x1
goto :goto_1
:cond_2
invoke-virtual {p2}, Ljava/util/ArrayList;->size()I
move-result p3
add-int/lit8 p3, p3, -0x1
:goto_2
if-ltz p3, :cond_3
invoke-virtual {p2, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
invoke-virtual {p1, v0}, Landroidx/transition/Transition;->removeTarget(Landroid/view/View;)Landroidx/transition/Transition;
add-int/lit8 p3, p3, -0x1
goto :goto_2
:cond_3
return-void
.end method
.method public scheduleHideFragmentView(Ljava/lang/Object;Landroid/view/View;Ljava/util/ArrayList;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Landroid/view/View;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
check-cast p1, Landroidx/transition/Transition;
new-instance v0, Landroidx/transition/FragmentTransitionSupport$2;
invoke-direct {v0, p0, p2, p3}, Landroidx/transition/FragmentTransitionSupport$2;-><init>(Landroidx/transition/FragmentTransitionSupport;Landroid/view/View;Ljava/util/ArrayList;)V
invoke-virtual {p1, v0}, Landroidx/transition/Transition;->addListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
return-void
.end method
.method public scheduleRemoveTargets(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;)V
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
move-object v0, p1
check-cast v0, Landroidx/transition/Transition;
new-instance v9, Landroidx/transition/FragmentTransitionSupport$3;
move-object v1, v9
move-object v2, p0
move-object v3, p2
move-object v4, p3
move-object v5, p4
move-object v6, p5
move-object/from16 v7, p6
move-object/from16 v8, p7
invoke-direct/range {v1 .. v8}, Landroidx/transition/FragmentTransitionSupport$3;-><init>(Landroidx/transition/FragmentTransitionSupport;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;)V
invoke-virtual {v0, v9}, Landroidx/transition/Transition;->addListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
return-void
.end method
.method public setEpicenter(Ljava/lang/Object;Landroid/graphics/Rect;)V
.locals 1
if-eqz p1, :cond_0
check-cast p1, Landroidx/transition/Transition;
new-instance v0, Landroidx/transition/FragmentTransitionSupport$4;
invoke-direct {v0, p0, p2}, Landroidx/transition/FragmentTransitionSupport$4;-><init>(Landroidx/transition/FragmentTransitionSupport;Landroid/graphics/Rect;)V
invoke-virtual {p1, v0}, Landroidx/transition/Transition;->setEpicenterCallback(Landroidx/transition/Transition$EpicenterCallback;)V
:cond_0
return-void
.end method
.method public setEpicenter(Ljava/lang/Object;Landroid/view/View;)V
.locals 1
if-eqz p2, :cond_0
check-cast p1, Landroidx/transition/Transition;
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
invoke-virtual {p0, p2, v0}, Landroidx/fragment/app/FragmentTransitionImpl;->getBoundsOnScreen(Landroid/view/View;Landroid/graphics/Rect;)V
new-instance p2, Landroidx/transition/FragmentTransitionSupport$1;
invoke-direct {p2, p0, v0}, Landroidx/transition/FragmentTransitionSupport$1;-><init>(Landroidx/transition/FragmentTransitionSupport;Landroid/graphics/Rect;)V
invoke-virtual {p1, p2}, Landroidx/transition/Transition;->setEpicenterCallback(Landroidx/transition/Transition$EpicenterCallback;)V
:cond_0
return-void
.end method
.method public setSharedElementTargets(Ljava/lang/Object;Landroid/view/View;Ljava/util/ArrayList;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Landroid/view/View;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
check-cast p1, Landroidx/transition/TransitionSet;
invoke-virtual {p1}, Landroidx/transition/Transition;->getTargets()Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->clear()V
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
invoke-virtual {p3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/View;
invoke-static {v0, v3}, Landroidx/fragment/app/FragmentTransitionImpl;->bfsAddViewChildren(Ljava/util/List;Landroid/view/View;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
invoke-interface {v0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
invoke-virtual {p3, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-virtual {p0, p1, p3}, Landroidx/transition/FragmentTransitionSupport;->addTargets(Ljava/lang/Object;Ljava/util/ArrayList;)V
return-void
.end method
.method public swapSharedElementTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
check-cast p1, Landroidx/transition/TransitionSet;
if-eqz p1, :cond_0
invoke-virtual {p1}, Landroidx/transition/Transition;->getTargets()Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->clear()V
invoke-virtual {p1}, Landroidx/transition/Transition;->getTargets()Ljava/util/List;
move-result-object v0
invoke-interface {v0, p3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
invoke-virtual {p0, p1, p2, p3}, Landroidx/transition/FragmentTransitionSupport;->replaceTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
:cond_0
return-void
.end method
.method public wrapTransitionInSet(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
if-nez p1, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
new-instance v0, Landroidx/transition/TransitionSet;
invoke-direct {v0}, Landroidx/transition/TransitionSet;-><init>()V
check-cast p1, Landroidx/transition/Transition;
invoke-virtual {v0, p1}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet;
return-object v0
.end method