apkfuckery/com.discord/smali/androidx/appcompat/app/ActionBarDrawerToggleHoneycomb.smali

194 lines
5.7 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "ActionBarDrawerToggleHoneycomb.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final TAG:Ljava/lang/String; = "ActionBarDrawerToggleHC"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final THEME_ATTRS:[I
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-07-24 11:27:29 +00:00
.locals 3
const/4 v0, 0x1
new-array v0, v0, [I
const/4 v1, 0x0
const v2, 0x101030b
aput v2, v0, v1
sput-object v0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb;->THEME_ATTRS:[I
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getThemeUpIndicator(Landroid/app/Activity;)Landroid/graphics/drawable/Drawable;
.locals 1
sget-object v0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb;->THEME_ATTRS:[I
invoke-virtual {p0, v0}, Landroid/app/Activity;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
move-result-object p0
const/4 v0, 0x0
invoke-virtual {p0, v0}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-virtual {p0}, Landroid/content/res/TypedArray;->recycle()V
return-object v0
.end method
.method public static setActionBarDescription(Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;Landroid/app/Activity;I)Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;
.locals 3
if-nez p0, :cond_0
new-instance p0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;
invoke-direct {p0, p1}, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;-><init>(Landroid/app/Activity;)V
:cond_0
iget-object v0, p0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->setHomeAsUpIndicator:Ljava/lang/reflect/Method;
if-eqz v0, :cond_1
:try_start_0
invoke-virtual {p1}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
move-result-object p1
iget-object v0, p0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->setHomeActionContentDescription:Ljava/lang/reflect/Method;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
aput-object p2, v1, v2
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2019-12-06 03:29:40 +00:00
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
2019-07-24 11:27:29 +00:00
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
const-string p2, "ActionBarDrawerToggleHC"
const-string v0, "Couldn\'t set content description via JB-MR2 API"
invoke-static {p2, v0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_1
:goto_0
return-object p0
.end method
2019-11-15 02:21:15 +00:00
.method public static setActionBarUpIndicator(Landroid/app/Activity;Landroid/graphics/drawable/Drawable;I)Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;
.locals 6
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
new-instance v0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {v0, p0}, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;-><init>(Landroid/app/Activity;)V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v1, v0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->setHomeAsUpIndicator:Ljava/lang/reflect/Method;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const-string v2, "ActionBarDrawerToggleHC"
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz v1, :cond_0
2019-07-24 11:27:29 +00:00
:try_start_0
2019-11-15 02:21:15 +00:00
invoke-virtual {p0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v1, v0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->setHomeAsUpIndicator:Ljava/lang/reflect/Method;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
new-array v4, v3, [Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const/4 v5, 0x0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
aput-object p1, v4, v5
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v1, p0, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object p1, v0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->setHomeActionContentDescription:Ljava/lang/reflect/Method;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
new-array v1, v3, [Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
aput-object p2, v1, v5
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {p1, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
2019-11-15 02:21:15 +00:00
move-exception p0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const-string p1, "Couldn\'t set home-as-up indicator via JB-MR2 API"
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-static {v2, p1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_0
2019-11-15 02:21:15 +00:00
iget-object p0, v0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->upIndicatorView:Landroid/widget/ImageView;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-eqz p0, :cond_1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_1
2019-11-15 02:21:15 +00:00
const-string p0, "Couldn\'t set home-as-up indicator"
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-static {v2, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
2019-07-24 11:27:29 +00:00
:goto_0
2019-11-15 02:21:15 +00:00
return-object v0
2019-07-24 11:27:29 +00:00
.end method