a.smali
.class public final Lsg/bigo/live/support64/utils/a;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Landroid/content/Context;I)Landroid/view/animation/Animation;
.registers 6
const/4 v0, 0x0
const-string v1, "AABAnimationUtils"
if-eqz p0, :cond_1f
.line 24
:try_start_5
invoke-static {p0, p1}, Lsg/bigo/live/support64/utils/a;->b(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object p0
:try_end_9
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_9} :catch_a
goto :goto_20
.line 26
:catch_a
:try_start_a
new-instance p0, Ljava/lang/StringBuilder;
const-string v2, "Self context loadAnimation failed. the resId is "
invoke-direct {p0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {p1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {v1, p0}, Lsg/bigo/log/TraceLog;->w(Ljava/lang/String;Ljava/lang/String;)I
:try_end_1f
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_1f} :catch_66
:cond_1f
move-object p0, v0
:goto_20
if-nez p0, :cond_67
.line 31
:try_start_22
invoke-static {}, Lsg/bigo/mobile/android/aab/a;->f()Landroid/app/Activity;
move-result-object v2
:try_end_26
.catch Ljava/lang/Exception; {:try_start_22 .. :try_end_26} :catch_65
if-eqz v2, :cond_43
.line 34
:try_start_28
invoke-static {v2, p1}, Lsg/bigo/live/support64/utils/a;->b(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object p0
:try_end_2c
.catch Ljava/lang/Exception; {:try_start_28 .. :try_end_2c} :catch_2d
goto :goto_43
.line 36
:catch_2d
:try_start_2d
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Activity context loadAnimation failed. the resId is "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {p1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Lsg/bigo/log/TraceLog;->w(Ljava/lang/String;Ljava/lang/String;)I
:try_end_42
.catch Ljava/lang/Exception; {:try_start_2d .. :try_end_42} :catch_65
goto :goto_44
:cond_43
:goto_43
move-object v0, p0
:goto_44
if-nez v0, :cond_66
.line 44
:try_start_46
invoke-static {}, Lsg/bigo/mobile/android/aab/a;->d()Landroid/content/Context;
move-result-object p0
invoke-static {p0, p1}, Lsg/bigo/live/support64/utils/a;->b(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object p0
:try_end_4e
.catch Ljava/lang/Exception; {:try_start_46 .. :try_end_4e} :catch_4f
goto :goto_67
.line 46
:catch_4f
:try_start_4f
new-instance p0, Ljava/lang/StringBuilder;
const-string v2, "Application context loadAnimation failed. the resId is "
invoke-direct {p0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {p1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {v1, p0}, Lsg/bigo/log/TraceLog;->w(Ljava/lang/String;Ljava/lang/String;)I
:try_end_64
.catch Ljava/lang/Exception; {:try_start_4f .. :try_end_64} :catch_66
goto :goto_66
:catch_65
move-object v0, p0
:catch_66
:cond_66
:goto_66
move-object p0, v0
:cond_67
:goto_67
if-nez p0, :cond_70
.line 54
new-instance p0, Landroid/view/animation/AlphaAnimation;
const/high16 p1, 0x3f800000 # 1.0f
invoke-direct {p0, p1, p1}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V
:cond_70
return-object p0
.end method
.method private static b(Landroid/content/Context;I)Landroid/view/animation/Animation;
.registers 3
.line 63
:try_start_0
invoke-static {p0, p1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v0
:try_end_4
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_4} :catch_5
goto :goto_6
:catch_5
const/4 v0, 0x0
:goto_6
if-nez v0, :cond_f
.line 69
invoke-static {p0}, Lsg/bigo/mobile/android/aab/c/a;->a(Landroid/content/Context;)V
.line 70
invoke-static {p0, p1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v0
:cond_f
return-object v0
.end method