MeasureSpecAssertions.smali
.class public Lcom/facebook/react/uimanager/MeasureSpecAssertions;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final assertExplicitMeasureSpec(II)V
.registers 2
.line 1
invoke-static {p0}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result p0
.line 2
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result p1
if-eqz p0, :cond_d
if-eqz p1, :cond_d
return-void
.line 3
:cond_d
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "A catalyst view must have an explicit width and height given to it. This should normally happen as part of the standard catalyst UI framework."
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method