FacebookButtonBase.smali
.class public abstract Lcom/facebook/FacebookButtonBase;
.super Landroid/widget/Button;
.source "SourceFile"
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"ResourceType"
}
.end annotation
# instance fields
.field private final analyticsButtonCreatedEventName:Ljava/lang/String;
.field private final analyticsButtonTappedEventName:Ljava/lang/String;
.field private final defaultStyleResource:I
.field private externalOnClickListener:Landroid/view/View$OnClickListener;
.field private internalOnClickListener:Landroid/view/View$OnClickListener;
.field private overrideCompoundPadding:Z
.field private overrideCompoundPaddingLeft:I
.field private overrideCompoundPaddingRight:I
.field private parentFragment:Lcom/facebook/internal/FragmentWrapper;
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILjava/lang/String;Ljava/lang/String;)V
.registers 8
const-string v0, "context"
invoke-static {p1, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "analyticsButtonCreatedEventName"
invoke-static {p5, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "analyticsButtonTappedEventName"
invoke-static {p6, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, v0}, Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
if-nez p4, :cond_19
.line 2
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getDefaultStyleResource()I
move-result p4
:cond_19
if-nez p4, :cond_1d
.line 3
sget p4, Lcom/facebook/common/R$style;->com_facebook_button:I
.line 4
:cond_1d
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/facebook/FacebookButtonBase;->configureButton(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.line 5
iput-object p5, p0, Lcom/facebook/FacebookButtonBase;->analyticsButtonCreatedEventName:Ljava/lang/String;
.line 6
iput-object p6, p0, Lcom/facebook/FacebookButtonBase;->analyticsButtonTappedEventName:Ljava/lang/String;
const/4 p1, 0x1
.line 7
invoke-virtual {p0, p1}, Landroid/view/View;->setClickable(Z)V
.line 8
invoke-virtual {p0, p1}, Landroid/view/View;->setFocusable(Z)V
return-void
.end method
.method public static synthetic a(Lcom/facebook/FacebookButtonBase;Landroid/view/View;)V
.registers 2
invoke-static {p0, p1}, Lcom/facebook/FacebookButtonBase;->setupOnClickListener$lambda-0(Lcom/facebook/FacebookButtonBase;Landroid/view/View;)V
return-void
.end method
.method private final parseBackgroundAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.registers 8
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z
move-result v0
if-eqz v0, :cond_e
return-void
:cond_e
const/4 v0, 0x1
new-array v0, v0, [I
const v1, 0x10100d4
const/4 v2, 0x0
aput v1, v0, v2
.line 2
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v1
invoke-virtual {v1, p2, v0, p3, p4}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p2
const-string p3, "context.theme.obtainStyledAttributes(attrs, attrsResources, defStyleAttr, defStyleRes)"
invoke-static {p2, p3}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_24
.catchall {:try_start_7 .. :try_end_24} :catchall_4e
.line 3
:try_start_24
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
move-result p3
if-eqz p3, :cond_3c
.line 4
invoke-virtual {p2, v2, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p1
if-eqz p1, :cond_34
.line 5
invoke-virtual {p0, p1}, Landroid/view/View;->setBackgroundResource(I)V
goto :goto_45
.line 6
:cond_34
invoke-virtual {p2, v2, v2}, Landroid/content/res/TypedArray;->getColor(II)I
move-result p1
invoke-virtual {p0, p1}, Landroid/view/View;->setBackgroundColor(I)V
goto :goto_45
.line 7
:cond_3c
sget p3, Lcom/facebook/common/R$color;->com_facebook_blue:I
invoke-static {p1, p3}, Landroidx/core/content/b;->b(Landroid/content/Context;I)I
move-result p1
.line 8
invoke-virtual {p0, p1}, Landroid/view/View;->setBackgroundColor(I)V
:try_end_45
.catchall {:try_start_24 .. :try_end_45} :catchall_49
.line 9
:goto_45
:try_start_45
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
return-void
:catchall_49
move-exception p1
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
throw p1
:try_end_4e
.catchall {:try_start_45 .. :try_end_4e} :catchall_4e
:catchall_4e
move-exception p1
.line 10
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method private final parseCompoundDrawableAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.registers 12
.annotation build Landroid/annotation/SuppressLint;
value = {
"ResourceType"
}
.end annotation
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
const/4 v0, 0x5
:try_start_8
new-array v0, v0, [I
const v1, 0x101016f
const/4 v2, 0x0
aput v1, v0, v2
const v1, 0x101016d
const/4 v3, 0x1
aput v1, v0, v3
const v1, 0x1010170
const/4 v4, 0x2
aput v1, v0, v4
const v1, 0x101016e
const/4 v5, 0x3
aput v1, v0, v5
const v1, 0x1010171
const/4 v6, 0x4
aput v1, v0, v6
.line 1
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object p1
invoke-virtual {p1, p2, v0, p3, p4}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
const-string p2, "context.theme.obtainStyledAttributes(attrs, attrsResources, defStyleAttr, defStyleRes)"
invoke-static {p1, p2}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_35
.catchall {:try_start_8 .. :try_end_35} :catchall_58
.line 2
:try_start_35
invoke-virtual {p1, v2, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p2
.line 3
invoke-virtual {p1, v3, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p3
.line 4
invoke-virtual {p1, v4, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p4
.line 5
invoke-virtual {p1, v5, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result v0
.line 6
invoke-virtual {p0, p2, p3, p4, v0}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(IIII)V
.line 7
invoke-virtual {p1, v6, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result p2
:try_end_4c
.catchall {:try_start_35 .. :try_end_4c} :catchall_53
.line 8
:try_start_4c
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
.line 9
invoke-virtual {p0, p2}, Landroid/widget/TextView;->setCompoundDrawablePadding(I)V
return-void
:catchall_53
move-exception p2
.line 10
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
throw p2
:try_end_58
.catchall {:try_start_4c .. :try_end_58} :catchall_58
:catchall_58
move-exception p1
.line 11
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method private final parseContentAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.registers 11
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
const/4 v0, 0x4
:try_start_8
new-array v0, v0, [I
const v1, 0x10100d6
const/4 v2, 0x0
aput v1, v0, v2
const v1, 0x10100d7
const/4 v3, 0x1
aput v1, v0, v3
const v1, 0x10100d8
const/4 v4, 0x2
aput v1, v0, v4
const v1, 0x10100d9
const/4 v5, 0x3
aput v1, v0, v5
.line 1
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object p1
invoke-virtual {p1, p2, v0, p3, p4}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
const-string p2, "context.theme.obtainStyledAttributes(attrs, attrsResources, defStyleAttr, defStyleRes)"
invoke-static {p1, p2}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_2f
.catchall {:try_start_8 .. :try_end_2f} :catchall_4b
.line 2
:try_start_2f
invoke-virtual {p1, v2, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result p2
.line 3
invoke-virtual {p1, v3, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result p3
.line 4
invoke-virtual {p1, v4, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result p4
.line 5
invoke-virtual {p1, v5, v2}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result v0
.line 6
invoke-virtual {p0, p2, p3, p4, v0}, Landroid/view/View;->setPadding(IIII)V
:try_end_42
.catchall {:try_start_2f .. :try_end_42} :catchall_46
.line 7
:try_start_42
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
:catchall_46
move-exception p2
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
throw p2
:try_end_4b
.catchall {:try_start_42 .. :try_end_4b} :catchall_4b
:catchall_4b
move-exception p1
.line 8
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method private final parseTextAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.registers 10
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
const/4 v0, 0x1
:try_start_8
new-array v1, v0, [I
const v2, 0x1010098
const/4 v3, 0x0
aput v2, v1, v3
.line 1
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v2
invoke-virtual {v2, p2, v1, p3, p4}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object v1
const-string v2, "context.theme.obtainStyledAttributes(attrs, colorResources, defStyleAttr, defStyleRes)"
invoke-static {v1, v2}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_1d
.catchall {:try_start_8 .. :try_end_1d} :catchall_94
.line 2
:try_start_1d
invoke-virtual {v1, v3}, Landroid/content/res/TypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
move-result-object v2
invoke-virtual {p0, v2}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
:try_end_24
.catchall {:try_start_1d .. :try_end_24} :catchall_8f
.line 3
:try_start_24
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
new-array v1, v0, [I
const v2, 0x10100af
aput v2, v1, v3
.line 4
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v2
invoke-virtual {v2, p2, v1, p3, p4}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object v1
const-string v2, "context.theme.obtainStyledAttributes(attrs, gravityResources, defStyleAttr, defStyleRes)"
invoke-static {v1, v2}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_3b
.catchall {:try_start_24 .. :try_end_3b} :catchall_94
const/16 v2, 0x11
.line 5
:try_start_3d
invoke-virtual {v1, v3, v2}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v2
:try_end_41
.catchall {:try_start_3d .. :try_end_41} :catchall_8a
.line 6
:try_start_41
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
.line 7
invoke-virtual {p0, v2}, Landroid/widget/TextView;->setGravity(I)V
const/4 v1, 0x3
new-array v1, v1, [I
const v2, 0x1010095
aput v2, v1, v3
const v2, 0x1010097
aput v2, v1, v0
const v2, 0x101014f
const/4 v4, 0x2
aput v2, v1, v4
.line 8
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object p1
invoke-virtual {p1, p2, v1, p3, p4}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
const-string p2, "context.theme.obtainStyledAttributes(attrs, attrsResources, defStyleAttr, defStyleRes)"
invoke-static {p1, p2}, Lcom/shopee/sz/loadtask/datasource/a;->x(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_67
.catchall {:try_start_41 .. :try_end_67} :catchall_94
.line 9
:try_start_67
invoke-virtual {p1, v3, v3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result p2
int-to-float p2, p2
invoke-virtual {p0, v3, p2}, Landroid/widget/TextView;->setTextSize(IF)V
.line 10
invoke-virtual {p0}, Landroid/widget/TextView;->getTypeface()Landroid/graphics/Typeface;
move-result-object p2
.line 11
invoke-static {p2, v0}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;I)Landroid/graphics/Typeface;
move-result-object p2
invoke-virtual {p0, p2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
.line 12
invoke-virtual {p1, v4}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object p2
:try_end_7e
.catchall {:try_start_67 .. :try_end_7e} :catchall_85
.line 13
:try_start_7e
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
.line 14
invoke-virtual {p0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
return-void
:catchall_85
move-exception p2
.line 15
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
throw p2
:catchall_8a
move-exception p1
.line 16
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
throw p1
:catchall_8f
move-exception p1
.line 17
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
throw p1
:try_end_94
.catchall {:try_start_7e .. :try_end_94} :catchall_94
:catchall_94
move-exception p1
.line 18
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method private final setupOnClickListener()V
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
new-instance v0, Lcom/facebook/e;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/facebook/e;-><init>(Ljava/lang/Object;I)V
invoke-super {p0, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
:try_end_10
.catchall {:try_start_7 .. :try_end_10} :catchall_11
return-void
:catchall_11
move-exception v0
.line 2
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method private static final setupOnClickListener$lambda-0(Lcom/facebook/FacebookButtonBase;Landroid/view/View;)V
.registers 3
const-class v0, Lcom/facebook/FacebookButtonBase;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_9
return-void
:cond_9
:try_start_9
const-string v0, "this$0"
invoke-static {p0, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
.line 1
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/facebook/FacebookButtonBase;->logButtonTapped(Landroid/content/Context;)V
.line 2
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->internalOnClickListener:Landroid/view/View$OnClickListener;
if-eqz v0, :cond_1d
.line 3
invoke-interface {v0, p1}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V
goto :goto_25
.line 4
:cond_1d
iget-object p0, p0, Lcom/facebook/FacebookButtonBase;->externalOnClickListener:Landroid/view/View$OnClickListener;
if-nez p0, :cond_22
goto :goto_25
:cond_22
invoke-interface {p0, p1}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V
:try_end_25
.catchall {:try_start_9 .. :try_end_25} :catchall_26
:goto_25
return-void
:catchall_26
move-exception p0
.line 5
const-class p1, Lcom/facebook/FacebookButtonBase;
invoke-static {p0, p1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public callExternalOnClickListener(Landroid/view/View;)V
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->externalOnClickListener:Landroid/view/View$OnClickListener;
if-nez v0, :cond_c
goto :goto_f
:cond_c
invoke-interface {v0, p1}, Landroid/view/View$OnClickListener;->onClick(Landroid/view/View;)V
:try_end_f
.catchall {:try_start_7 .. :try_end_f} :catchall_10
:goto_f
return-void
:catchall_10
move-exception p1
.line 2
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public configureButton(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.registers 6
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
:try_start_7
const-string v0, "context"
invoke-static {p1, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/facebook/FacebookButtonBase;->parseBackgroundAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.line 2
invoke-direct {p0, p1, p2, p3, p4}, Lcom/facebook/FacebookButtonBase;->parseCompoundDrawableAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.line 3
invoke-direct {p0, p1, p2, p3, p4}, Lcom/facebook/FacebookButtonBase;->parseContentAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.line 4
invoke-direct {p0, p1, p2, p3, p4}, Lcom/facebook/FacebookButtonBase;->parseTextAttributes(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.line 5
invoke-direct {p0}, Lcom/facebook/FacebookButtonBase;->setupOnClickListener()V
:try_end_1b
.catchall {:try_start_7 .. :try_end_1b} :catchall_1c
return-void
:catchall_1c
move-exception p1
.line 6
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public getActivity()Landroid/app/Activity;
.registers 4
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return-object v1
.line 1
:cond_8
:try_start_8
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
.line 2
:goto_c
instance-of v2, v0, Landroid/app/Activity;
if-nez v2, :cond_1b
instance-of v2, v0, Landroid/content/ContextWrapper;
if-eqz v2, :cond_1b
.line 3
check-cast v0, Landroid/content/ContextWrapper;
invoke-virtual {v0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
move-result-object v0
goto :goto_c
.line 4
:cond_1b
instance-of v2, v0, Landroid/app/Activity;
if-eqz v2, :cond_22
.line 5
check-cast v0, Landroid/app/Activity;
return-object v0
.line 6
:cond_22
new-instance v0, Lcom/facebook/FacebookException;
const-string v2, "Unable to get Activity."
invoke-direct {v0, v2}, Lcom/facebook/FacebookException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_2a
.catchall {:try_start_8 .. :try_end_2a} :catchall_2a
:catchall_2a
move-exception v0
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v1
.end method
.method public final getAnalyticsButtonCreatedEventName()Ljava/lang/String;
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return-object v1
:cond_8
:try_start_8
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->analyticsButtonCreatedEventName:Ljava/lang/String;
:try_end_a
.catchall {:try_start_8 .. :try_end_a} :catchall_b
return-object v0
:catchall_b
move-exception v0
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v1
.end method
.method public final getAnalyticsButtonTappedEventName()Ljava/lang/String;
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return-object v1
:cond_8
:try_start_8
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->analyticsButtonTappedEventName:Ljava/lang/String;
:try_end_a
.catchall {:try_start_8 .. :try_end_a} :catchall_b
return-object v0
:catchall_b
move-exception v0
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v1
.end method
.method public final getAndroidxActivityResultRegistryOwner()Landroidx/activity/result/c;
.registers 4
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return-object v1
.line 1
:cond_8
:try_start_8
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getActivity()Landroid/app/Activity;
move-result-object v0
.line 2
instance-of v2, v0, Landroidx/activity/result/c;
if-eqz v2, :cond_13
.line 3
check-cast v0, Landroidx/activity/result/c;
:try_end_12
.catchall {:try_start_8 .. :try_end_12} :catchall_14
move-object v1, v0
:cond_13
return-object v1
:catchall_14
move-exception v0
.line 4
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v1
.end method
.method public getCompoundPaddingLeft()I
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return v1
.line 1
:cond_8
:try_start_8
iget-boolean v0, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPadding:Z
if-eqz v0, :cond_f
iget v0, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPaddingLeft:I
goto :goto_13
.line 2
:cond_f
invoke-super {p0}, Landroid/widget/TextView;->getCompoundPaddingLeft()I
move-result v0
:try_end_13
.catchall {:try_start_8 .. :try_end_13} :catchall_14
:goto_13
return v0
:catchall_14
move-exception v0
.line 3
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return v1
.end method
.method public getCompoundPaddingRight()I
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return v1
.line 1
:cond_8
:try_start_8
iget-boolean v0, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPadding:Z
if-eqz v0, :cond_f
iget v0, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPaddingRight:I
goto :goto_13
.line 2
:cond_f
invoke-super {p0}, Landroid/widget/TextView;->getCompoundPaddingRight()I
move-result v0
:try_end_13
.catchall {:try_start_8 .. :try_end_13} :catchall_14
:goto_13
return v0
:catchall_14
move-exception v0
.line 3
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return v1
.end method
.method public abstract getDefaultRequestCode()I
.end method
.method public getDefaultStyleResource()I
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return v1
:cond_8
:try_start_8
iget v0, p0, Lcom/facebook/FacebookButtonBase;->defaultStyleResource:I
:try_end_a
.catchall {:try_start_8 .. :try_end_a} :catchall_b
return v0
:catchall_b
move-exception v0
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return v1
.end method
.method public final getFragment()Landroidx/fragment/app/Fragment;
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return-object v1
:cond_8
:try_start_8
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->parentFragment:Lcom/facebook/internal/FragmentWrapper;
if-nez v0, :cond_d
goto :goto_11
:cond_d
invoke-virtual {v0}, Lcom/facebook/internal/FragmentWrapper;->getSupportFragment()Landroidx/fragment/app/Fragment;
move-result-object v1
:try_end_11
.catchall {:try_start_8 .. :try_end_11} :catchall_12
:goto_11
return-object v1
:catchall_12
move-exception v0
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v1
.end method
.method public final getNativeFragment()Landroid/app/Fragment;
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return-object v1
:cond_8
:try_start_8
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->parentFragment:Lcom/facebook/internal/FragmentWrapper;
if-nez v0, :cond_d
goto :goto_11
:cond_d
invoke-virtual {v0}, Lcom/facebook/internal/FragmentWrapper;->getNativeFragment()Landroid/app/Fragment;
move-result-object v1
:try_end_11
.catchall {:try_start_8 .. :try_end_11} :catchall_12
:goto_11
return-object v1
:catchall_12
move-exception v0
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-object v1
.end method
.method public getRequestCode()I
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return v1
:cond_8
:try_start_8
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getDefaultRequestCode()I
move-result v0
:try_end_c
.catchall {:try_start_8 .. :try_end_c} :catchall_d
return v0
:catchall_d
move-exception v0
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return v1
.end method
.method public logButtonCreated(Landroid/content/Context;)V
.registers 4
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
sget-object v0, Lcom/facebook/appevents/InternalAppEventsLogger;->Companion:Lcom/facebook/appevents/InternalAppEventsLogger$Companion;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1}, Lcom/facebook/appevents/InternalAppEventsLogger$Companion;->createInstance(Landroid/content/Context;Ljava/lang/String;)Lcom/facebook/appevents/InternalAppEventsLogger;
move-result-object p1
.line 2
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->analyticsButtonCreatedEventName:Ljava/lang/String;
invoke-virtual {p1, v0}, Lcom/facebook/appevents/InternalAppEventsLogger;->logEventImplicitly(Ljava/lang/String;)V
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_14
return-void
:catchall_14
move-exception p1
.line 3
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public logButtonTapped(Landroid/content/Context;)V
.registers 4
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
sget-object v0, Lcom/facebook/appevents/InternalAppEventsLogger;->Companion:Lcom/facebook/appevents/InternalAppEventsLogger$Companion;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1}, Lcom/facebook/appevents/InternalAppEventsLogger$Companion;->createInstance(Landroid/content/Context;Ljava/lang/String;)Lcom/facebook/appevents/InternalAppEventsLogger;
move-result-object p1
.line 2
iget-object v0, p0, Lcom/facebook/FacebookButtonBase;->analyticsButtonTappedEventName:Ljava/lang/String;
invoke-virtual {p1, v0}, Lcom/facebook/appevents/InternalAppEventsLogger;->logEventImplicitly(Ljava/lang/String;)V
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_14
return-void
:catchall_14
move-exception p1
.line 3
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public measureTextWidth(Ljava/lang/String;)I
.registers 6
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return v1
:cond_8
:try_start_8
invoke-virtual {p0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F
move-result p1
float-to-double v2, p1
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
move-result-wide v0
:try_end_15
.catchall {:try_start_8 .. :try_end_15} :catchall_17
double-to-int p1, v0
return p1
:catchall_17
move-exception p1
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return v1
.end method
.method public onAttachedToWindow()V
.registers 2
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
invoke-super {p0}, Landroid/widget/TextView;->onAttachedToWindow()V
.line 2
invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z
move-result v0
if-nez v0, :cond_17
.line 3
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/facebook/FacebookButtonBase;->logButtonCreated(Landroid/content/Context;)V
:try_end_17
.catchall {:try_start_7 .. :try_end_17} :catchall_18
:cond_17
return-void
:catchall_18
move-exception v0
.line 4
invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public onDraw(Landroid/graphics/Canvas;)V
.registers 8
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
:try_start_7
const-string v0, "canvas"
invoke-static {p1, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
.line 1
invoke-virtual {p0}, Landroid/widget/TextView;->getGravity()I
move-result v0
const/4 v1, 0x1
and-int/2addr v0, v1
const/4 v2, 0x0
if-eqz v0, :cond_17
const/4 v0, 0x1
goto :goto_18
:cond_17
const/4 v0, 0x0
:goto_18
if-eqz v0, :cond_50
.line 2
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getCompoundPaddingLeft()I
move-result v0
.line 3
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getCompoundPaddingRight()I
move-result v3
.line 4
invoke-virtual {p0}, Landroid/widget/TextView;->getCompoundDrawablePadding()I
move-result v4
add-int/2addr v4, v0
.line 5
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
move-result v5
sub-int/2addr v5, v4
sub-int/2addr v5, v3
.line 6
invoke-virtual {p0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/facebook/FacebookButtonBase;->measureTextWidth(Ljava/lang/String;)I
move-result v4
sub-int/2addr v5, v4
.line 7
div-int/lit8 v5, v5, 0x2
.line 8
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
move-result v4
sub-int v4, v0, v4
div-int/lit8 v4, v4, 0x2
.line 9
invoke-static {v5, v4}, Ljava/lang/Math;->min(II)I
move-result v4
sub-int/2addr v0, v4
.line 10
iput v0, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPaddingLeft:I
add-int/2addr v3, v4
.line 11
iput v3, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPaddingRight:I
.line 12
iput-boolean v1, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPadding:Z
.line 13
:cond_50
invoke-super {p0, p1}, Landroid/widget/TextView;->onDraw(Landroid/graphics/Canvas;)V
.line 14
iput-boolean v2, p0, Lcom/facebook/FacebookButtonBase;->overrideCompoundPadding:Z
:try_end_55
.catchall {:try_start_7 .. :try_end_55} :catchall_56
return-void
:catchall_56
move-exception p1
.line 15
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public final setFragment(Landroid/app/Fragment;)V
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
:try_start_7
const-string v0, "fragment"
invoke-static {p1, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
.line 1
new-instance v0, Lcom/facebook/internal/FragmentWrapper;
invoke-direct {v0, p1}, Lcom/facebook/internal/FragmentWrapper;-><init>(Landroid/app/Fragment;)V
iput-object v0, p0, Lcom/facebook/FacebookButtonBase;->parentFragment:Lcom/facebook/internal/FragmentWrapper;
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_14
return-void
:catchall_14
move-exception p1
.line 2
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public final setFragment(Landroidx/fragment/app/Fragment;)V
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
:try_start_7
const-string v0, "fragment"
invoke-static {p1, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
.line 3
new-instance v0, Lcom/facebook/internal/FragmentWrapper;
invoke-direct {v0, p1}, Lcom/facebook/internal/FragmentWrapper;-><init>(Landroidx/fragment/app/Fragment;)V
iput-object v0, p0, Lcom/facebook/FacebookButtonBase;->parentFragment:Lcom/facebook/internal/FragmentWrapper;
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_14
return-void
:catchall_14
move-exception p1
.line 4
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public setInternalOnClickListener(Landroid/view/View$OnClickListener;)V
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
iput-object p1, p0, Lcom/facebook/FacebookButtonBase;->internalOnClickListener:Landroid/view/View$OnClickListener;
:try_end_9
.catchall {:try_start_7 .. :try_end_9} :catchall_a
return-void
:catchall_a
move-exception p1
.line 2
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public setOnClickListener(Landroid/view/View$OnClickListener;)V
.registers 3
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 1
:cond_7
:try_start_7
iput-object p1, p0, Lcom/facebook/FacebookButtonBase;->externalOnClickListener:Landroid/view/View$OnClickListener;
:try_end_9
.catchall {:try_start_7 .. :try_end_9} :catchall_a
return-void
:catchall_a
move-exception p1
.line 2
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method