.class public Landroidx/appcompat/widget/ViewUtils; .super Ljava/lang/Object; .source "ViewUtils.java" # static fields .field private static final TAG:Ljava/lang/String; = "ViewUtils" .field private static sComputeFitSystemWindowsMethod:Ljava/lang/reflect/Method; # direct methods .method static constructor ()V .registers 5 .line 44 :try_start_0 const-class v0, Landroid/view/View; const-string v1, "computeFitSystemWindows" const/4 v2, 0x2 new-array v2, v2, [Ljava/lang/Class; const-class v3, Landroid/graphics/Rect; const/4 v4, 0x0 aput-object v3, v2, v4 const-class v3, Landroid/graphics/Rect; const/4 v4, 0x1 aput-object v3, v2, v4 invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v0 sput-object v0, Landroidx/appcompat/widget/ViewUtils;->sComputeFitSystemWindowsMethod:Ljava/lang/reflect/Method; .line 46 invoke-virtual {v0}, Ljava/lang/reflect/Method;->isAccessible()Z move-result v0 if-nez v0, :cond_2a .line 47 sget-object v0, Landroidx/appcompat/widget/ViewUtils;->sComputeFitSystemWindowsMethod:Ljava/lang/reflect/Method; invoke-virtual {v0, v4}, Ljava/lang/reflect/Method;->setAccessible(Z)V :try_end_22 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_22} :catch_23 goto :goto_2a .line 50 :catch_23 const-string v0, "ViewUtils" const-string v1, "Could not find method computeFitSystemWindows. Oh well." invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I :cond_2a :goto_2a return-void .end method .method private constructor ()V .registers 1 .line 55 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static computeFitSystemWindows(Landroid/view/View;Landroid/graphics/Rect;Landroid/graphics/Rect;)V .registers 4 .line 66 sget-object v0, Landroidx/appcompat/widget/ViewUtils;->sComputeFitSystemWindowsMethod:Ljava/lang/reflect/Method; if-eqz v0, :cond_14 .line 68 :try_start_4 filled-new-array {p1, p2}, [Ljava/lang/Object; move-result-object p1 invoke-virtual {v0, p0, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; :try_end_b .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_b} :catch_c goto :goto_14 :catch_c move-exception p0 .line 70 const-string p1, "ViewUtils" const-string p2, "Could not invoke computeFitSystemWindows" invoke-static {p1, p2, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I :cond_14 :goto_14 return-void .end method .method public static isLayoutRtl(Landroid/view/View;)Z .registers 2 .line 58 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result p0 const/4 v0, 0x1 if-ne p0, v0, :cond_8 goto :goto_9 :cond_8 const/4 v0, 0x0 :goto_9 return v0 .end method .method public static makeOptionalFitsSystemWindows(Landroid/view/View;)V .registers 7 .line 80 const-string v0, "Could not invoke makeOptionalFitsSystemWindows" const-string v1, "ViewUtils" .line 84 :try_start_4 invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v2 const-string v3, "makeOptionalFitsSystemWindows" const/4 v4, 0x0 new-array v5, v4, [Ljava/lang/Class; invoke-virtual {v2, v3, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v2 .line 85 invoke-virtual {v2}, Ljava/lang/reflect/Method;->isAccessible()Z move-result v3 if-nez v3, :cond_1b const/4 v3, 0x1 .line 86 invoke-virtual {v2, v3}, Ljava/lang/reflect/Method;->setAccessible(Z)V .line 88 :cond_1b new-array v3, v4, [Ljava/lang/Object; invoke-virtual {v2, p0, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; :try_end_20 .catch Ljava/lang/NoSuchMethodException; {:try_start_4 .. :try_end_20} :catch_2b .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_4 .. :try_end_20} :catch_26 .catch Ljava/lang/IllegalAccessException; {:try_start_4 .. :try_end_20} :catch_21 goto :goto_30 :catch_21 move-exception p0 .line 94 invoke-static {v1, v0, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I goto :goto_30 :catch_26 move-exception p0 .line 92 invoke-static {v1, v0, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I goto :goto_30 .line 90 :catch_2b const-string p0, "Could not find method makeOptionalFitsSystemWindows. Oh well..." invoke-static {v1, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I :goto_30 return-void .end method