142 lines
3.5 KiB
Smali
142 lines
3.5 KiB
Smali
|
.class public Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ActionBarDrawerToggleHoneycomb.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x9
|
||
|
name = "SetIndicatorInfo"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public setHomeActionContentDescription:Ljava/lang/reflect/Method;
|
||
|
|
||
|
.field public setHomeAsUpIndicator:Ljava/lang/reflect/Method;
|
||
|
|
||
|
.field public upIndicatorView:Landroid/widget/ImageView;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/app/Activity;)V
|
||
|
.locals 5
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
:try_start_0
|
||
|
const-class v2, Landroid/app/ActionBar;
|
||
|
|
||
|
new-array v3, v1, [Ljava/lang/Class;
|
||
|
|
||
|
const-class v4, Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
aput-object v4, v3, v0
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
const-string v4, "setHomeAsUpIndicator"
|
||
|
|
||
|
:try_start_1
|
||
|
invoke-virtual {v2, v4, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iput-object v2, p0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->setHomeAsUpIndicator:Ljava/lang/reflect/Method;
|
||
|
|
||
|
const-class v2, Landroid/app/ActionBar;
|
||
|
|
||
|
new-array v3, v1, [Ljava/lang/Class;
|
||
|
|
||
|
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
||
|
|
||
|
aput-object v4, v3, v0
|
||
|
:try_end_1
|
||
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
|
||
|
const-string v4, "setHomeActionContentDescription"
|
||
|
|
||
|
:try_start_2
|
||
|
invoke-virtual {v2, v4, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iput-object v2, p0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->setHomeActionContentDescription:Ljava/lang/reflect/Method;
|
||
|
:try_end_2
|
||
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_2 .. :try_end_2} :catch_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catch_0
|
||
|
nop
|
||
|
|
||
|
const v2, 0x102002c
|
||
|
|
||
|
invoke-virtual {p1, v2}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Landroid/view/ViewGroup;
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const/4 v4, 0x2
|
||
|
|
||
|
if-eq v3, v4, :cond_1
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/view/View;->getId()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-ne v1, v2, :cond_2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
move-object p1, v0
|
||
|
|
||
|
:goto_0
|
||
|
nop
|
||
|
|
||
|
instance-of v0, p1, Landroid/widget/ImageView;
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
check-cast p1, Landroid/widget/ImageView;
|
||
|
|
||
|
iput-object p1, p0, Landroidx/appcompat/app/ActionBarDrawerToggleHoneycomb$SetIndicatorInfo;->upIndicatorView:Landroid/widget/ImageView;
|
||
|
|
||
|
:cond_3
|
||
|
return-void
|
||
|
.end method
|