apkfuckery/com.discord/smali/androidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl.smali

146 lines
4.1 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "AppCompatDelegateImpl.java"
# interfaces
.implements Landroidx/appcompat/app/ActionBarDrawerToggle$Delegate;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/appcompat/app/AppCompatDelegateImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x1
2019-07-24 11:27:29 +00:00
name = "ActionBarDrawableToggleImpl"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroidx/appcompat/app/AppCompatDelegateImpl;)V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public getActionBarThemedContext()Landroid/content/Context;
.locals 1
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDelegateImpl;->getActionBarThemedContext()Landroid/content/Context;
move-result-object v0
return-object v0
.end method
.method public getThemeUpIndicator()Landroid/graphics/drawable/Drawable;
.locals 4
invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl;->getActionBarThemedContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [I
sget v2, Landroidx/appcompat/R$attr;->homeAsUpIndicator:I
const/4 v3, 0x0
aput v2, v1, v3
const/4 v2, 0x0
invoke-static {v0, v2, v1}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[I)Landroidx/appcompat/widget/TintTypedArray;
move-result-object v0
invoke-virtual {v0, v3}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
return-object v1
.end method
.method public isNavigationVisible()Z
.locals 1
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDelegateImpl;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroidx/appcompat/app/ActionBar;->getDisplayOptions()I
move-result v0
and-int/lit8 v0, v0, 0x4
if-eqz v0, :cond_0
const/4 v0, 0x1
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return v0
.end method
.method public setActionBarDescription(I)V
.locals 1
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDelegateImpl;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroidx/appcompat/app/ActionBar;->setHomeActionContentDescription(I)V
:cond_0
return-void
.end method
.method public setActionBarUpIndicator(Landroid/graphics/drawable/Drawable;I)V
.locals 1
iget-object v0, p0, Landroidx/appcompat/app/AppCompatDelegateImpl$ActionBarDrawableToggleImpl;->this$0:Landroidx/appcompat/app/AppCompatDelegateImpl;
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatDelegateImpl;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0, p1}, Landroidx/appcompat/app/ActionBar;->setHomeAsUpIndicator(Landroid/graphics/drawable/Drawable;)V
invoke-virtual {v0, p2}, Landroidx/appcompat/app/ActionBar;->setHomeActionContentDescription(I)V
:cond_0
return-void
.end method