962 lines
26 KiB
Smali
962 lines
26 KiB
Smali
.class public abstract Landroidx/transition/Visibility;
|
|
.super Landroidx/transition/Transition;
|
|
.source "Visibility.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/transition/Visibility$DisappearListener;,
|
|
Landroidx/transition/Visibility$VisibilityInfo;,
|
|
Landroidx/transition/Visibility$Mode;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final MODE_IN:I = 0x1
|
|
|
|
.field public static final MODE_OUT:I = 0x2
|
|
|
|
.field public static final PROPNAME_PARENT:Ljava/lang/String; = "android:visibility:parent"
|
|
|
|
.field public static final PROPNAME_SCREEN_LOCATION:Ljava/lang/String; = "android:visibility:screenLocation"
|
|
|
|
.field public static final PROPNAME_VISIBILITY:Ljava/lang/String; = "android:visibility:visibility"
|
|
|
|
.field public static final sTransitionProperties:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public mMode:I
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-string v0, "android:visibility:visibility"
|
|
|
|
const-string v1, "android:visibility:parent"
|
|
|
|
filled-new-array {v0, v1}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/transition/Visibility;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroidx/transition/Transition;-><init>()V
|
|
|
|
const/4 v0, 0x3
|
|
|
|
iput v0, p0, Landroidx/transition/Visibility;->mMode:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 2
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/transition/Transition;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 v0, 0x3
|
|
|
|
iput v0, p0, Landroidx/transition/Visibility;->mMode:I
|
|
|
|
sget-object v0, Landroidx/transition/Styleable;->VISIBILITY_TRANSITION:[I
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p2, Landroid/content/res/XmlResourceParser;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-string v1, "transitionVisibilityMode"
|
|
|
|
invoke-static {p1, p2, v1, v0, v0}, Landroidx/core/content/res/TypedArrayUtils;->getNamedInt(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/transition/Visibility;->setMode(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private captureValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "android:visibility:visibility"
|
|
|
|
invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "android:visibility:parent"
|
|
|
|
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [I
|
|
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->getLocationOnScreen([I)V
|
|
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v1, "android:visibility:screenLocation"
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private getVisibilityChangeInfo(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroidx/transition/Visibility$VisibilityInfo;
|
|
.locals 7
|
|
|
|
new-instance v0, Landroidx/transition/Visibility$VisibilityInfo;
|
|
|
|
invoke-direct {v0}, Landroidx/transition/Visibility$VisibilityInfo;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-boolean v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
iput-boolean v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
const-string v2, "android:visibility:parent"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const-string v5, "android:visibility:visibility"
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v6, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v6, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
iget-object v6, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v6, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v6
|
|
|
|
iput v6, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
iget-object v6, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v6, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Landroid/view/ViewGroup;
|
|
|
|
iput-object v6, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartParent:Landroid/view/ViewGroup;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iput v4, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
iput-object v3, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartParent:Landroid/view/ViewGroup;
|
|
|
|
:goto_0
|
|
if-eqz p2, :cond_1
|
|
|
|
iget-object v6, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v6, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
iget-object v3, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v3
|
|
|
|
iput v3, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
iget-object v3, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v3, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/view/ViewGroup;
|
|
|
|
iput-object v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndParent:Landroid/view/ViewGroup;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iput v4, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
iput-object v3, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndParent:Landroid/view/ViewGroup;
|
|
|
|
:goto_1
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
iget p1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
iget p2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
if-ne p1, p2, :cond_2
|
|
|
|
iget-object p1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartParent:Landroid/view/ViewGroup;
|
|
|
|
iget-object p2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndParent:Landroid/view/ViewGroup;
|
|
|
|
if-ne p1, p2, :cond_2
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
iget p1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
iget p2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
if-eq p1, p2, :cond_4
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
iput-boolean v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
if-nez p2, :cond_8
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
iget-object p1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndParent:Landroid/view/ViewGroup;
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
iput-boolean v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
iget-object p1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartParent:Landroid/view/ViewGroup;
|
|
|
|
if-nez p1, :cond_8
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
if-nez p1, :cond_7
|
|
|
|
iget p1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
if-nez p2, :cond_8
|
|
|
|
iget p1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
if-nez p1, :cond_8
|
|
|
|
iput-boolean v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
iput-boolean v2, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
:cond_8
|
|
:goto_2
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public captureEndValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1}, Landroidx/transition/Visibility;->captureValues(Landroidx/transition/TransitionValues;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public captureStartValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1}, Landroidx/transition/Visibility;->captureValues(Landroidx/transition/TransitionValues;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public createAnimator(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
|
|
.locals 8
|
|
.param p1 # Landroid/view/ViewGroup;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p2, p3}, Landroidx/transition/Visibility;->getVisibilityChangeInfo(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroidx/transition/Visibility$VisibilityInfo;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartParent:Landroid/view/ViewGroup;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-object v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndParent:Landroid/view/ViewGroup;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
:cond_0
|
|
iget-boolean v1, v0, Landroidx/transition/Visibility$VisibilityInfo;->mFadeIn:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget v5, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
iget v7, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v6, p3
|
|
|
|
invoke-virtual/range {v2 .. v7}, Landroidx/transition/Visibility;->onAppear(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;ILandroidx/transition/TransitionValues;I)Landroid/animation/Animator;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
iget v3, v0, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
iget v5, v0, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v4, p3
|
|
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/transition/Visibility;->onDisappear(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;ILandroidx/transition/TransitionValues;I)Landroid/animation/Animator;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getMode()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/transition/Visibility;->mMode:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTransitionProperties()[Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget-object v0, Landroidx/transition/Visibility;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public isTransitionRequired(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
iget-object v1, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:visibility:visibility"
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
iget-object v3, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v3, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2}, Landroidx/transition/Visibility;->getVisibilityChangeInfo(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroidx/transition/Visibility$VisibilityInfo;
|
|
|
|
move-result-object p1
|
|
|
|
iget-boolean p2, p1, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
iget p2, p1, Landroidx/transition/Visibility$VisibilityInfo;->mStartVisibility:I
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget p1, p1, Landroidx/transition/Visibility$VisibilityInfo;->mEndVisibility:I
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
:cond_2
|
|
const/4 v0, 0x1
|
|
|
|
:cond_3
|
|
return v0
|
|
.end method
|
|
|
|
.method public isVisible(Landroidx/transition/TransitionValues;)Z
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:visibility:visibility"
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v1
|
|
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:visibility:parent"
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public onAppear(Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
|
|
.locals 0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onAppear(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;ILandroidx/transition/TransitionValues;I)Landroid/animation/Animator;
|
|
.locals 2
|
|
|
|
iget p3, p0, Landroidx/transition/Visibility;->mMode:I
|
|
|
|
const/4 p5, 0x1
|
|
|
|
and-int/2addr p3, p5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-ne p3, p5, :cond_2
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-nez p2, :cond_1
|
|
|
|
iget-object p3, p4, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {p3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Landroid/view/View;
|
|
|
|
const/4 p5, 0x0
|
|
|
|
invoke-virtual {p0, p3, p5}, Landroidx/transition/Transition;->getMatchedTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, p3, p5}, Landroidx/transition/Transition;->getTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-direct {p0, v1, p3}, Landroidx/transition/Visibility;->getVisibilityChangeInfo(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroidx/transition/Visibility$VisibilityInfo;
|
|
|
|
move-result-object p3
|
|
|
|
iget-boolean p3, p3, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
iget-object p3, p4, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {p0, p1, p3, p2, p4}, Landroidx/transition/Visibility;->onAppear(Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onDisappear(Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
|
|
.locals 0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onDisappear(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;ILandroidx/transition/TransitionValues;I)Landroid/animation/Animator;
|
|
.locals 6
|
|
|
|
iget p3, p0, Landroidx/transition/Visibility;->mMode:I
|
|
|
|
const/4 v0, 0x2
|
|
|
|
and-int/2addr p3, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eq p3, v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_1
|
|
|
|
iget-object p3, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object p3, v1
|
|
|
|
:goto_0
|
|
if-eqz p4, :cond_2
|
|
|
|
iget-object v2, p4, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move-object v2, v1
|
|
|
|
:goto_1
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v4
|
|
|
|
if-nez v4, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/4 v4, 0x4
|
|
|
|
if-ne p5, v4, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
if-ne p3, v2, :cond_5
|
|
|
|
:goto_2
|
|
move-object p3, v1
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_5
|
|
iget-boolean v2, p0, Landroidx/transition/Transition;->mCanRemoveViews:Z
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
goto :goto_5
|
|
|
|
:cond_6
|
|
invoke-virtual {p3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/view/View;
|
|
|
|
invoke-static {p1, p3, v2}, Landroidx/transition/TransitionUtils;->copyViewImage(Landroid/view/ViewGroup;Landroid/view/View;Landroid/view/View;)Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
:goto_3
|
|
if-eqz v2, :cond_8
|
|
|
|
move-object p3, v2
|
|
|
|
:goto_4
|
|
move-object v2, v1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_8
|
|
if-eqz p3, :cond_c
|
|
|
|
invoke-virtual {p3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
:goto_5
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
invoke-virtual {p3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
instance-of v2, v2, Landroid/view/View;
|
|
|
|
if-eqz v2, :cond_c
|
|
|
|
invoke-virtual {p3}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/view/View;
|
|
|
|
invoke-virtual {p0, v2, v3}, Landroidx/transition/Transition;->getTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {p0, v2, v3}, Landroidx/transition/Transition;->getMatchedTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-direct {p0, v4, v5}, Landroidx/transition/Visibility;->getVisibilityChangeInfo(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroidx/transition/Visibility$VisibilityInfo;
|
|
|
|
move-result-object v4
|
|
|
|
iget-boolean v4, v4, Landroidx/transition/Visibility$VisibilityInfo;->mVisibilityChange:Z
|
|
|
|
if-nez v4, :cond_a
|
|
|
|
invoke-static {p1, p3, v2}, Landroidx/transition/TransitionUtils;->copyViewImage(Landroid/view/ViewGroup;Landroid/view/View;Landroid/view/View;)Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v4
|
|
|
|
if-nez v4, :cond_b
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getId()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v4, -0x1
|
|
|
|
if-eq v2, v4, :cond_b
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
iget-boolean v2, p0, Landroidx/transition/Transition;->mCanRemoveViews:Z
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
goto :goto_4
|
|
|
|
:cond_b
|
|
move-object p3, v1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_c
|
|
move-object p3, v1
|
|
|
|
move-object v2, p3
|
|
|
|
:goto_6
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz p3, :cond_e
|
|
|
|
if-eqz p2, :cond_e
|
|
|
|
iget-object p5, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v1, "android:visibility:screenLocation"
|
|
|
|
invoke-interface {p5, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p5
|
|
|
|
check-cast p5, [I
|
|
|
|
aget v1, p5, v4
|
|
|
|
aget p5, p5, v3
|
|
|
|
new-array v0, v0, [I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->getLocationOnScreen([I)V
|
|
|
|
aget v2, v0, v4
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
invoke-virtual {p3}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
invoke-virtual {p3, v1}, Landroid/view/View;->offsetLeftAndRight(I)V
|
|
|
|
aget v0, v0, v3
|
|
|
|
sub-int/2addr p5, v0
|
|
|
|
invoke-virtual {p3}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr p5, v0
|
|
|
|
invoke-virtual {p3, p5}, Landroid/view/View;->offsetTopAndBottom(I)V
|
|
|
|
invoke-static {p1}, Landroidx/transition/ViewGroupUtils;->getOverlay(Landroid/view/ViewGroup;)Landroidx/transition/ViewGroupOverlayImpl;
|
|
|
|
move-result-object p5
|
|
|
|
invoke-interface {p5, p3}, Landroidx/transition/ViewGroupOverlayImpl;->add(Landroid/view/View;)V
|
|
|
|
invoke-virtual {p0, p1, p3, p2, p4}, Landroidx/transition/Visibility;->onDisappear(Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_d
|
|
|
|
invoke-interface {p5, p3}, Landroidx/transition/ViewGroupOverlayImpl;->remove(Landroid/view/View;)V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_d
|
|
new-instance p2, Landroidx/transition/Visibility$1;
|
|
|
|
invoke-direct {p2, p0, p5, p3}, Landroidx/transition/Visibility$1;-><init>(Landroidx/transition/Visibility;Landroidx/transition/ViewGroupOverlayImpl;Landroid/view/View;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
:goto_7
|
|
return-object p1
|
|
|
|
:cond_e
|
|
if-eqz v2, :cond_10
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {v2, v4}, Landroidx/transition/ViewUtils;->setTransitionVisibility(Landroid/view/View;I)V
|
|
|
|
invoke-virtual {p0, p1, v2, p2, p4}, Landroidx/transition/Visibility;->onDisappear(Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_f
|
|
|
|
new-instance p2, Landroidx/transition/Visibility$DisappearListener;
|
|
|
|
invoke-direct {p2, v2, p5, v3}, Landroidx/transition/Visibility$DisappearListener;-><init>(Landroid/view/View;IZ)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
invoke-static {p1, p2}, Landroidx/transition/AnimatorUtils;->addPauseListener(Landroid/animation/Animator;Landroid/animation/AnimatorListenerAdapter;)V
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/transition/Transition;->addListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
|
|
|
|
goto :goto_8
|
|
|
|
:cond_f
|
|
invoke-static {v2, p3}, Landroidx/transition/ViewUtils;->setTransitionVisibility(Landroid/view/View;I)V
|
|
|
|
:goto_8
|
|
return-object p1
|
|
|
|
:cond_10
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public setMode(I)V
|
|
.locals 1
|
|
|
|
and-int/lit8 v0, p1, -0x4
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput p1, p0, Landroidx/transition/Visibility;->mMode:I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Only MODE_IN and MODE_OUT flags are allowed"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|