87 lines
1.9 KiB
Smali
87 lines
1.9 KiB
Smali
|
.class Landroidx/transition/Transition$ArrayListManager;
|
||
|
.super Ljava/lang/Object;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/transition/Transition;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = "ArrayListManager"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static add(Ljava/util/ArrayList;Ljava/lang/Object;)Ljava/util/ArrayList;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Ljava/util/ArrayList<",
|
||
|
"TT;>;TT;)",
|
||
|
"Ljava/util/ArrayList<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
if-nez p0, :cond_0
|
||
|
|
||
|
new-instance p0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
:cond_1
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static remove(Ljava/util/ArrayList;Ljava/lang/Object;)Ljava/util/ArrayList;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Ljava/util/ArrayList<",
|
||
|
"TT;>;TT;)",
|
||
|
"Ljava/util/ArrayList<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/util/ArrayList;->isEmpty()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:cond_0
|
||
|
return-object p0
|
||
|
.end method
|