.class Landroidx/transition/ViewGroupUtils; .super Ljava/lang/Object; .source "ViewGroupUtils.java" # static fields .field private static sGetChildDrawingOrderMethod:Ljava/lang/reflect/Method; = null .field private static sGetChildDrawingOrderMethodFetched:Z = false .field private static sTryHiddenSuppressLayout:Z = true # direct methods .method static constructor ()V .locals 0 return-void .end method .method private constructor ()V .locals 0 .line 110 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method static getChildDrawingOrder(Landroid/view/ViewGroup;I)I .locals 7 .line 83 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1d if-lt v0, v1, :cond_0 .line 84 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->getChildDrawingOrder(I)I move-result p0 return p0 .line 86 :cond_0 sget-boolean v0, Landroidx/transition/ViewGroupUtils;->sGetChildDrawingOrderMethodFetched:Z const/4 v1, 0x0 const/4 v2, 0x2 const/4 v3, 0x1 if-nez v0, :cond_1 .line 88 :try_start_0 const-class v0, Landroid/view/ViewGroup; const-string v4, "getChildDrawingOrder" new-array v5, v2, [Ljava/lang/Class; sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class; aput-object v6, v5, v1 sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class; aput-object v6, v5, v3 invoke-virtual {v0, v4, v5}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v0 sput-object v0, Landroidx/transition/ViewGroupUtils;->sGetChildDrawingOrderMethod:Ljava/lang/reflect/Method; .line 90 invoke-virtual {v0, v3}, Ljava/lang/reflect/Method;->setAccessible(Z)V :try_end_0 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0 .line 94 :catch_0 sput-boolean v3, Landroidx/transition/ViewGroupUtils;->sGetChildDrawingOrderMethodFetched:Z .line 96 :cond_1 sget-object v0, Landroidx/transition/ViewGroupUtils;->sGetChildDrawingOrderMethod:Ljava/lang/reflect/Method; if-eqz v0, :cond_2 .line 98 :try_start_1 new-array v2, v2, [Ljava/lang/Object; .line 99 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v4 invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 aput-object v4, v2, v1 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 aput-object v1, v2, v3 .line 98 invoke-virtual {v0, p0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/lang/Integer; invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I move-result p0 :try_end_1 .catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1 .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_1 .. :try_end_1} :catch_1 return p0 :catch_1 :cond_2 return p1 .end method .method static getOverlay(Landroid/view/ViewGroup;)Landroidx/transition/ViewGroupOverlayImpl; .locals 1 .line 47 new-instance v0, Landroidx/transition/ViewGroupOverlayApi18; invoke-direct {v0, p0}, Landroidx/transition/ViewGroupOverlayApi18;->(Landroid/view/ViewGroup;)V return-object v0 .end method .method private static hiddenSuppressLayout(Landroid/view/ViewGroup;Z)V .locals 1 .line 68 sget-boolean v0, Landroidx/transition/ViewGroupUtils;->sTryHiddenSuppressLayout:Z if-eqz v0, :cond_0 .line 72 :try_start_0 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->suppressLayout(Z)V :try_end_0 .catch Ljava/lang/NoSuchMethodError; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 const/4 p0, 0x0 .line 74 sput-boolean p0, Landroidx/transition/ViewGroupUtils;->sTryHiddenSuppressLayout:Z :cond_0 :goto_0 return-void .end method .method static suppressLayout(Landroid/view/ViewGroup;Z)V .locals 2 .line 56 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1d if-lt v0, v1, :cond_0 .line 57 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->suppressLayout(Z)V goto :goto_0 .line 59 :cond_0 invoke-static {p0, p1}, Landroidx/transition/ViewGroupUtils;->hiddenSuppressLayout(Landroid/view/ViewGroup;Z)V :goto_0 return-void .end method