granularity level: instruction

		.class public Landroidx/legacy/app/ActionBarDrawerToggle;
.super Ljava/lang/Object;
.source "ActionBarDrawerToggle.java"
.implements Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;,
Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;,
Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;,
Landroidx/legacy/app/ActionBarDrawerToggle$DelegateProvider;
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.field private static final ID_HOME:I = 0x102002c
.field private static final TAG:Ljava/lang/String; = "ActionBarDrawerToggle"
.field private static final THEME_ATTRS:[I
.field private static final TOGGLE_DRAWABLE_OFFSET:F = 0.33333334f
.field final mActivity:Landroid/app/Activity;
.field private final mActivityImpl:Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;
.field private final mCloseDrawerContentDescRes:I
.field private mDrawerImage:Landroid/graphics/drawable/Drawable;
.field private final mDrawerImageResource:I
.field private mDrawerIndicatorEnabled:Z
.field private final mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
.field private mHasCustomUpIndicator:Z
.field private mHomeAsUpIndicator:Landroid/graphics/drawable/Drawable;
.field private final mOpenDrawerContentDescRes:I
.field private mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
.field private mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;


.method static constructor <clinit>()V
	.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/legacy/app/ActionBarDrawerToggle;->THEME_ATTRS:[I
	return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Landroidx/drawerlayout/widget/DrawerLayout;III)V
	.locals 8

	invoke-static {p1}, Landroidx/legacy/app/ActionBarDrawerToggle;->assumeMaterial(Landroid/content/Context;)Z
	move-result v0
	xor-int/lit8 v4, v0, 0x1
	move-object v1, p0
	move-object v2, p1
	move-object v3, p2
	move v5, p3
	move v6, p4
	move v7, p5
	invoke-direct/range {v1 .. v7}, Landroidx/legacy/app/ActionBarDrawerToggle;-><init>(Landroid/app/Activity;Landroidx/drawerlayout/widget/DrawerLayout;ZIII)V
	return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Landroidx/drawerlayout/widget/DrawerLayout;ZIII)V
	.locals 1

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	const/4 v0, 0x1
	iput-boolean v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	iput-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	instance-of v0, p1, Landroidx/legacy/app/ActionBarDrawerToggle$DelegateProvider;
	if-eqz v0, :cond_0
	move-object v0, p1
	check-cast v0, Landroidx/legacy/app/ActionBarDrawerToggle$DelegateProvider;
	invoke-interface {v0}, Landroidx/legacy/app/ActionBarDrawerToggle$DelegateProvider;->getDrawerToggleDelegate()Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;
	move-result-object v0
	iput-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivityImpl:Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;
	goto :goto_0
	:cond_0
	const/4 v0, 0x0
	iput-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivityImpl:Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;
	:goto_0
	iput-object p2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
	iput p4, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerImageResource:I
	iput p5, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mOpenDrawerContentDescRes:I
	iput p6, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mCloseDrawerContentDescRes:I
	invoke-direct {p0}, Landroidx/legacy/app/ActionBarDrawerToggle;->getThemeUpIndicator()Landroid/graphics/drawable/Drawable;
	move-result-object p2
	iput-object p2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHomeAsUpIndicator:Landroid/graphics/drawable/Drawable;
	invoke-static {p1, p4}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
	move-result-object p1
	iput-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerImage:Landroid/graphics/drawable/Drawable;
	new-instance p1, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	iget-object p2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerImage:Landroid/graphics/drawable/Drawable;
	invoke-direct {p1, p0, p2}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;-><init>(Landroidx/legacy/app/ActionBarDrawerToggle;Landroid/graphics/drawable/Drawable;)V
	iput-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	if-eqz p3, :cond_1
	const p2, 0x3eaaaaab
	goto :goto_1
	:cond_1
	const/4 p2, 0x0
	:goto_1
	invoke-virtual {p1, p2}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;->setOffset(F)V
	return-void
.end method

.method private static assumeMaterial(Landroid/content/Context;)Z
	.locals 1

	invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
	move-result-object p0
	iget p0, p0, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I
	const/16 v0, 0x15
	if-lt p0, v0, :cond_0
	sget p0, Landroid/os/Build$VERSION;->SDK_INT:I
	if-lt p0, v0, :cond_0
	const/4 p0, 0x1
	goto :goto_0
	:cond_0
	const/4 p0, 0x0
	:goto_0
	return p0
.end method

.method private getThemeUpIndicator()Landroid/graphics/drawable/Drawable;
	.locals 5

	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivityImpl:Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;
	if-eqz v0, :cond_0
	invoke-interface {v0}, Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;->getThemeUpIndicator()Landroid/graphics/drawable/Drawable;
	move-result-object v0
	return-object v0
	:cond_0
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x12
	const/4 v2, 0x0
	if-lt v0, v1, :cond_2
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
	move-result-object v0
	if-eqz v0, :cond_1
	invoke-virtual {v0}, Landroid/app/ActionBar;->getThemedContext()Landroid/content/Context;
	move-result-object v0
	goto :goto_0
	:cond_1
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	:goto_0
	const/4 v1, 0x0
	sget-object v3, Landroidx/legacy/app/ActionBarDrawerToggle;->THEME_ATTRS:[I
	const v4, 0x10102ce
	invoke-virtual {v0, v1, v3, v4, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
	move-result-object v0
	invoke-virtual {v0, v2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
	move-result-object v1
	invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
	return-object v1
	:cond_2
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	sget-object v1, Landroidx/legacy/app/ActionBarDrawerToggle;->THEME_ATTRS:[I
	invoke-virtual {v0, v1}, Landroid/app/Activity;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
	move-result-object v0
	invoke-virtual {v0, v2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
	move-result-object v1
	invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
	return-object v1
.end method

.method private setActionBarDescription(I)V
	.locals 4

	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivityImpl:Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;
	if-eqz v0, :cond_0
	invoke-interface {v0, p1}, Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;->setActionBarDescription(I)V
	return-void
	:cond_0
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x12
	if-lt v0, v1, :cond_1
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
	move-result-object v0
	if-eqz v0, :cond_3
	invoke-virtual {v0, p1}, Landroid/app/ActionBar;->setHomeActionContentDescription(I)V
	goto :goto_0
	:cond_1
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	if-nez v0, :cond_2
	new-instance v0, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-direct {v0, v1}, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;-><init>(Landroid/app/Activity;)V
	iput-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	:cond_2
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object v0, v0, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;->mSetHomeAsUpIndicator:Ljava/lang/reflect/Method;
	if-eqz v0, :cond_3
	:try_start_0
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
	move-result-object v0
	iget-object v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object v1, v1, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;->mSetHomeActionContentDescription:Ljava/lang/reflect/Method;
	const/4 v2, 0x1
	new-array v2, v2, [Ljava/lang/Object;
	const/4 v3, 0x0
	invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
	move-result-object p1
	aput-object p1, v2, v3
	invoke-virtual {v1, v0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
	invoke-virtual {v0}, Landroid/app/ActionBar;->getSubtitle()Ljava/lang/CharSequence;
	move-result-object p1
	invoke-virtual {v0, p1}, Landroid/app/ActionBar;->setSubtitle(Ljava/lang/CharSequence;)V
	: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 v0, "ActionBarDrawerToggle"
	const-string v1, "Couldn\'t set content description via JB-MR2 API"
	invoke-static {v0, v1, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	:goto_0
	:cond_3
	return-void
.end method

.method private setActionBarUpIndicator(Landroid/graphics/drawable/Drawable;I)V
	.locals 6

	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivityImpl:Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;
	if-eqz v0, :cond_0
	invoke-interface {v0, p1, p2}, Landroidx/legacy/app/ActionBarDrawerToggle$Delegate;->setActionBarUpIndicator(Landroid/graphics/drawable/Drawable;I)V
	return-void
	:cond_0
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x12
	if-lt v0, v1, :cond_1
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
	move-result-object v0
	if-eqz v0, :cond_5
	invoke-virtual {v0, p1}, Landroid/app/ActionBar;->setHomeAsUpIndicator(Landroid/graphics/drawable/Drawable;)V
	invoke-virtual {v0, p2}, Landroid/app/ActionBar;->setHomeActionContentDescription(I)V
	goto :goto_0
	:cond_1
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	if-nez v0, :cond_2
	new-instance v0, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-direct {v0, v1}, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;-><init>(Landroid/app/Activity;)V
	iput-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	:cond_2
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object v0, v0, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;->mSetHomeAsUpIndicator:Ljava/lang/reflect/Method;
	const-string v1, "ActionBarDrawerToggle"
	if-eqz v0, :cond_3
	:try_start_0
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-virtual {v0}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
	move-result-object v0
	iget-object v2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object v2, v2, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;->mSetHomeAsUpIndicator:Ljava/lang/reflect/Method;
	const/4 v3, 0x1
	new-array v4, v3, [Ljava/lang/Object;
	const/4 v5, 0x0
	aput-object p1, v4, v5
	invoke-virtual {v2, v0, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object p1, p1, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;->mSetHomeActionContentDescription:Ljava/lang/reflect/Method;
	new-array v2, v3, [Ljava/lang/Object;
	invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
	move-result-object p2
	aput-object p2, v2, v5
	invoke-virtual {p1, v0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
	: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, "Couldn\'t set home-as-up indicator via JB-MR2 API"
	invoke-static {v1, p2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	goto :goto_0
	:cond_3
	iget-object p2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object p2, p2, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;->mUpIndicatorView:Landroid/widget/ImageView;
	if-eqz p2, :cond_4
	iget-object p2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSetIndicatorInfo:Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;
	iget-object p2, p2, Landroidx/legacy/app/ActionBarDrawerToggle$SetIndicatorInfo;->mUpIndicatorView:Landroid/widget/ImageView;
	invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
	goto :goto_0
	:cond_4
	const-string p1, "Couldn\'t set home-as-up indicator"
	invoke-static {v1, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_0
	:cond_5
	return-void
.end method

.method public isDrawerIndicatorEnabled()Z
	.locals 1

	iget-boolean v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	return v0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
	.locals 1

	iget-boolean p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHasCustomUpIndicator:Z
	if-nez p1, :cond_0
	invoke-direct {p0}, Landroidx/legacy/app/ActionBarDrawerToggle;->getThemeUpIndicator()Landroid/graphics/drawable/Drawable;
	move-result-object p1
	iput-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHomeAsUpIndicator:Landroid/graphics/drawable/Drawable;
	:cond_0
	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	iget v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerImageResource:I
	invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
	move-result-object p1
	iput-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerImage:Landroid/graphics/drawable/Drawable;
	invoke-virtual {p0}, Landroidx/legacy/app/ActionBarDrawerToggle;->syncState()V
	return-void
.end method

.method public onDrawerClosed(Landroid/view/View;)V
	.locals 1

	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	const/4 v0, 0x0
	invoke-virtual {p1, v0}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;->setPosition(F)V
	iget-boolean p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	if-eqz p1, :cond_0
	iget p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mOpenDrawerContentDescRes:I
	invoke-direct {p0, p1}, Landroidx/legacy/app/ActionBarDrawerToggle;->setActionBarDescription(I)V
	:cond_0
	return-void
.end method

.method public onDrawerOpened(Landroid/view/View;)V
	.locals 1

	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	const/high16 v0, 0x3f800000    # 1.0f
	invoke-virtual {p1, v0}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;->setPosition(F)V
	iget-boolean p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	if-eqz p1, :cond_0
	iget p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mCloseDrawerContentDescRes:I
	invoke-direct {p0, p1}, Landroidx/legacy/app/ActionBarDrawerToggle;->setActionBarDescription(I)V
	:cond_0
	return-void
.end method

.method public onDrawerSlide(Landroid/view/View;F)V
	.locals 3

	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	invoke-virtual {p1}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;->getPosition()F
	move-result p1
	const/high16 v0, 0x40000000    # 2.0f
	const/high16 v1, 0x3f000000    # 0.5f
	cmpl-float v2, p2, v1
	if-lez v2, :cond_0
	const/4 v2, 0x0
	sub-float/2addr p2, v1
	invoke-static {v2, p2}, Ljava/lang/Math;->max(FF)F
	move-result p2
	mul-float p2, p2, v0
	invoke-static {p1, p2}, Ljava/lang/Math;->max(FF)F
	move-result p1
	goto :goto_0
	:cond_0
	mul-float p2, p2, v0
	invoke-static {p1, p2}, Ljava/lang/Math;->min(FF)F
	move-result p1
	:goto_0
	iget-object p2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	invoke-virtual {p2, p1}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;->setPosition(F)V
	return-void
.end method

.method public onDrawerStateChanged(I)V
	.locals 0

	return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
	.locals 1

	if-eqz p1, :cond_1
	invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I
	move-result p1
	const v0, 0x102002c
	if-ne p1, v0, :cond_1
	iget-boolean p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	if-eqz p1, :cond_1
	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
	const v0, 0x800003
	invoke-virtual {p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerVisible(I)Z
	move-result p1
	if-eqz p1, :cond_0
	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
	invoke-virtual {p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawer(I)V
	goto :goto_0
	:cond_0
	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
	invoke-virtual {p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->openDrawer(I)V
	:goto_0
	const/4 p1, 0x1
	return p1
	:cond_1
	const/4 p1, 0x0
	return p1
.end method

.method public setDrawerIndicatorEnabled(Z)V
	.locals 3

	iget-boolean v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	if-eq p1, v0, :cond_2
	if-eqz p1, :cond_1
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	iget-object v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
	const v2, 0x800003
	invoke-virtual {v1, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerOpen(I)Z
	move-result v1
	if-eqz v1, :cond_0
	iget v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mCloseDrawerContentDescRes:I
	goto :goto_0
	:cond_0
	iget v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mOpenDrawerContentDescRes:I
	:goto_0
	invoke-direct {p0, v0, v1}, Landroidx/legacy/app/ActionBarDrawerToggle;->setActionBarUpIndicator(Landroid/graphics/drawable/Drawable;I)V
	goto :goto_1
	:cond_1
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHomeAsUpIndicator:Landroid/graphics/drawable/Drawable;
	const/4 v1, 0x0
	invoke-direct {p0, v0, v1}, Landroidx/legacy/app/ActionBarDrawerToggle;->setActionBarUpIndicator(Landroid/graphics/drawable/Drawable;I)V
	:goto_1
	iput-boolean p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	:cond_2
	return-void
.end method

.method public setHomeAsUpIndicator(I)V
	.locals 1

	if-eqz p1, :cond_0
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mActivity:Landroid/app/Activity;
	invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
	move-result-object p1
	goto :goto_0
	:cond_0
	const/4 p1, 0x0
	:goto_0
	invoke-virtual {p0, p1}, Landroidx/legacy/app/ActionBarDrawerToggle;->setHomeAsUpIndicator(Landroid/graphics/drawable/Drawable;)V
	return-void
.end method

.method public setHomeAsUpIndicator(Landroid/graphics/drawable/Drawable;)V
	.locals 1

	const/4 v0, 0x0
	if-nez p1, :cond_0
	invoke-direct {p0}, Landroidx/legacy/app/ActionBarDrawerToggle;->getThemeUpIndicator()Landroid/graphics/drawable/Drawable;
	move-result-object p1
	iput-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHomeAsUpIndicator:Landroid/graphics/drawable/Drawable;
	iput-boolean v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHasCustomUpIndicator:Z
	goto :goto_0
	:cond_0
	iput-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHomeAsUpIndicator:Landroid/graphics/drawable/Drawable;
	const/4 p1, 0x1
	iput-boolean p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHasCustomUpIndicator:Z
	:goto_0
	iget-boolean p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	if-nez p1, :cond_1
	iget-object p1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mHomeAsUpIndicator:Landroid/graphics/drawable/Drawable;
	invoke-direct {p0, p1, v0}, Landroidx/legacy/app/ActionBarDrawerToggle;->setActionBarUpIndicator(Landroid/graphics/drawable/Drawable;I)V
	:cond_1
	return-void
.end method

.method public syncState()V
	.locals 3

	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
	const v1, 0x800003
	invoke-virtual {v0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerOpen(I)Z
	move-result v0
	if-eqz v0, :cond_0
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	const/high16 v2, 0x3f800000    # 1.0f
	invoke-virtual {v0, v2}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;->setPosition(F)V
	goto :goto_0
	:cond_0
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	const/4 v2, 0x0
	invoke-virtual {v0, v2}, Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;->setPosition(F)V
	:goto_0
	iget-boolean v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerIndicatorEnabled:Z
	if-eqz v0, :cond_2
	iget-object v0, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mSlider:Landroidx/legacy/app/ActionBarDrawerToggle$SlideDrawable;
	iget-object v2, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mDrawerLayout:Landroidx/drawerlayout/widget/DrawerLayout;
	invoke-virtual {v2, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerOpen(I)Z
	move-result v1
	if-eqz v1, :cond_1
	iget v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mCloseDrawerContentDescRes:I
	goto :goto_1
	:cond_1
	iget v1, p0, Landroidx/legacy/app/ActionBarDrawerToggle;->mOpenDrawerContentDescRes:I
	:goto_1
	invoke-direct {p0, v0, v1}, Landroidx/legacy/app/ActionBarDrawerToggle;->setActionBarUpIndicator(Landroid/graphics/drawable/Drawable;I)V
	:cond_2
	return-void
.end method