apkfuckery/com.discord/smali/androidx/transition/ViewOverlayApi14.smali
2019-02-04 21:29:01 +01:00

202 lines
5.3 KiB
Smali

.class Landroidx/transition/ViewOverlayApi14;
.super Ljava/lang/Object;
.source "ViewOverlayApi14.java"
# interfaces
.implements Landroidx/transition/ViewOverlayImpl;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
}
.end annotation
# instance fields
.field protected mOverlayViewGroup:Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
invoke-direct {v0, p1, p2, p3, p0}, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/ViewOverlayApi14;)V
iput-object v0, p0, Landroidx/transition/ViewOverlayApi14;->mOverlayViewGroup:Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
return-void
.end method
.method static createFrom(Landroid/view/View;)Landroidx/transition/ViewOverlayApi14;
.locals 5
invoke-static {p0}, Landroidx/transition/ViewOverlayApi14;->getContentView(Landroid/view/View;)Landroid/view/ViewGroup;
move-result-object v0
if-eqz v0, :cond_2
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v3
instance-of v4, v3, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
if-eqz v4, :cond_0
check-cast v3, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
iget-object p0, v3, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;->mViewOverlay:Landroidx/transition/ViewOverlayApi14;
return-object p0
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v1, Landroidx/transition/ViewGroupOverlayApi14;
invoke-virtual {v0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object v2
invoke-direct {v1, v2, v0, p0}, Landroidx/transition/ViewGroupOverlayApi14;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;)V
return-object v1
:cond_2
const/4 p0, 0x0
return-object p0
.end method
.method static getContentView(Landroid/view/View;)Landroid/view/ViewGroup;
.locals 2
:cond_0
:goto_0
if-eqz p0, :cond_2
invoke-virtual {p0}, Landroid/view/View;->getId()I
move-result v0
const v1, 0x1020002
if-ne v0, v1, :cond_1
instance-of v0, p0, Landroid/view/ViewGroup;
if-eqz v0, :cond_1
check-cast p0, Landroid/view/ViewGroup;
return-object p0
:cond_1
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v0
instance-of v0, v0, Landroid/view/ViewGroup;
if-eqz v0, :cond_0
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object p0
check-cast p0, Landroid/view/ViewGroup;
goto :goto_0
:cond_2
const/4 p0, 0x0
return-object p0
.end method
# virtual methods
.method public add(Landroid/graphics/drawable/Drawable;)V
.locals 1
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/transition/ViewOverlayApi14;->mOverlayViewGroup:Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
invoke-virtual {v0, p1}, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;->add(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public clear()V
.locals 1
iget-object v0, p0, Landroidx/transition/ViewOverlayApi14;->mOverlayViewGroup:Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
invoke-virtual {v0}, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;->clear()V
return-void
.end method
.method getOverlayView()Landroid/view/ViewGroup;
.locals 1
iget-object v0, p0, Landroidx/transition/ViewOverlayApi14;->mOverlayViewGroup:Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
return-object v0
.end method
.method isEmpty()Z
.locals 1
iget-object v0, p0, Landroidx/transition/ViewOverlayApi14;->mOverlayViewGroup:Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
invoke-virtual {v0}, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;->isEmpty()Z
move-result v0
return v0
.end method
.method public remove(Landroid/graphics/drawable/Drawable;)V
.locals 1
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/transition/ViewOverlayApi14;->mOverlayViewGroup:Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;
invoke-virtual {v0, p1}, Landroidx/transition/ViewOverlayApi14$OverlayViewGroup;->remove(Landroid/graphics/drawable/Drawable;)V
return-void
.end method