apkfuckery/com.discord/smali/androidx/appcompat/widget/ActionBarContainer.smali
2019-02-04 21:29:01 +01:00

1159 lines
31 KiB
Smali

.class public Landroidx/appcompat/widget/ActionBarContainer;
.super Landroid/widget/FrameLayout;
.source "ActionBarContainer.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# instance fields
.field private mActionBarView:Landroid/view/View;
.field mBackground:Landroid/graphics/drawable/Drawable;
.field private mContextView:Landroid/view/View;
.field private mHeight:I
.field mIsSplit:Z
.field mIsStacked:Z
.field private mIsTransitioning:Z
.field mSplitBackground:Landroid/graphics/drawable/Drawable;
.field mStackedBackground:Landroid/graphics/drawable/Drawable;
.field private mTabContainer:Landroid/view/View;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/ActionBarContainer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 2
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
new-instance v0, Landroidx/appcompat/widget/ActionBarBackgroundDrawable;
invoke-direct {v0, p0}, Landroidx/appcompat/widget/ActionBarBackgroundDrawable;-><init>(Landroidx/appcompat/widget/ActionBarContainer;)V
invoke-static {p0, v0}, Landroidx/core/view/ViewCompat;->setBackground(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
sget-object v0, Landroidx/appcompat/R$styleable;->ActionBar:[I
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p1
sget p2, Landroidx/appcompat/R$styleable;->ActionBar_background:I
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p2
iput-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
sget p2, Landroidx/appcompat/R$styleable;->ActionBar_backgroundStacked:I
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p2
iput-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
sget p2, Landroidx/appcompat/R$styleable;->ActionBar_height:I
const/4 v0, -0x1
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result p2
iput p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mHeight:I
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getId()I
move-result p2
sget v0, Landroidx/appcompat/R$id;->split_action_bar:I
const/4 v1, 0x1
if-ne p2, v0, :cond_0
iput-boolean v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
sget p2, Landroidx/appcompat/R$styleable;->ActionBar_backgroundSplit:I
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p2
iput-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
:cond_0
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
iget-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
const/4 p2, 0x0
if-eqz p1, :cond_1
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_2
:goto_0
const/4 p2, 0x1
goto :goto_1
:cond_1
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_2
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_2
goto :goto_0
:cond_2
:goto_1
invoke-virtual {p0, p2}, Landroidx/appcompat/widget/ActionBarContainer;->setWillNotDraw(Z)V
return-void
.end method
.method private getMeasuredHeightWithMargins(Landroid/view/View;)I
.locals 2
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
move-result p1
iget v1, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
add-int/2addr p1, v1
iget v0, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
add-int/2addr p1, v0
return p1
.end method
.method private isCollapsed(Landroid/view/View;)Z
.locals 2
if-eqz p1, :cond_1
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
move-result v0
const/16 v1, 0x8
if-eq v0, v1, :cond_1
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
move-result p1
if-nez p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
const/4 p1, 0x1
return p1
.end method
# virtual methods
.method protected drawableStateChanged()V
.locals 2
invoke-super {p0}, Landroid/widget/FrameLayout;->drawableStateChanged()V
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->isStateful()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getDrawableState()[I
move-result-object v1
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->isStateful()Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getDrawableState()[I
move-result-object v1
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
:cond_1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_2
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->isStateful()Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getDrawableState()[I
move-result-object v1
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
:cond_2
return-void
.end method
.method public getTabContainer()Landroid/view/View;
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
return-object v0
.end method
.method public jumpDrawablesToCurrentState()V
.locals 1
invoke-super {p0}, Landroid/widget/FrameLayout;->jumpDrawablesToCurrentState()V
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->jumpToCurrentState()V
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->jumpToCurrentState()V
:cond_1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_2
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->jumpToCurrentState()V
:cond_2
return-void
.end method
.method public onFinishInflate()V
.locals 1
invoke-super {p0}, Landroid/widget/FrameLayout;->onFinishInflate()V
sget v0, Landroidx/appcompat/R$id;->action_bar:I
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
sget v0, Landroidx/appcompat/R$id;->action_context_bar:I
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
return-void
.end method
.method public onHoverEvent(Landroid/view/MotionEvent;)Z
.locals 0
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onHoverEvent(Landroid/view/MotionEvent;)Z
const/4 p1, 0x1
return p1
.end method
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
.locals 1
iget-boolean v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsTransitioning:Z
if-nez v0, :cond_1
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
const/4 p1, 0x1
return p1
.end method
.method public onLayout(ZIIII)V
.locals 5
invoke-super/range {p0 .. p5}, Landroid/widget/FrameLayout;->onLayout(ZIIII)V
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
const/16 p3, 0x8
const/4 p5, 0x1
const/4 v0, 0x0
if-eqz p1, :cond_0
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
move-result v1
if-eq v1, p3, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
if-eqz p1, :cond_1
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
move-result v2
if-eq v2, p3, :cond_1
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredHeight()I
move-result p3
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v2
check-cast v2, Landroid/widget/FrameLayout$LayoutParams;
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
move-result v3
sub-int v3, p3, v3
iget v4, v2, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
sub-int/2addr v3, v4
iget v2, v2, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
sub-int/2addr p3, v2
invoke-virtual {p1, p2, v3, p4, p3}, Landroid/view/View;->layout(IIII)V
:cond_1
iget-boolean p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
if-eqz p2, :cond_3
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-eqz p1, :cond_2
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredWidth()I
move-result p2
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredHeight()I
move-result p3
invoke-virtual {p1, v0, v0, p2, p3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
goto/16 :goto_2
:cond_2
const/4 p5, 0x0
goto/16 :goto_2
:cond_3
iget-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-eqz p2, :cond_6
iget-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {p2}, Landroid/view/View;->getVisibility()I
move-result p2
if-nez p2, :cond_4
iget-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
iget-object p3, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {p3}, Landroid/view/View;->getLeft()I
move-result p3
iget-object p4, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {p4}, Landroid/view/View;->getTop()I
move-result p4
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getRight()I
move-result v0
iget-object v2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {v2}, Landroid/view/View;->getBottom()I
move-result v2
invoke-virtual {p2, p3, p4, v0, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
goto :goto_1
:cond_4
iget-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
if-eqz p2, :cond_5
invoke-virtual {p2}, Landroid/view/View;->getVisibility()I
move-result p2
if-nez p2, :cond_5
iget-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
iget-object p3, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
invoke-virtual {p3}, Landroid/view/View;->getLeft()I
move-result p3
iget-object p4, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
invoke-virtual {p4}, Landroid/view/View;->getTop()I
move-result p4
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getRight()I
move-result v0
iget-object v2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
invoke-virtual {v2}, Landroid/view/View;->getBottom()I
move-result v2
invoke-virtual {p2, p3, p4, v0, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
goto :goto_1
:cond_5
iget-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p2, v0, v0, v0, v0}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
:goto_1
const/4 v0, 0x1
:cond_6
iput-boolean v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsStacked:Z
if-eqz v1, :cond_7
iget-object p2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-eqz p2, :cond_7
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
move-result p3
invoke-virtual {p1}, Landroid/view/View;->getTop()I
move-result p4
invoke-virtual {p1}, Landroid/view/View;->getRight()I
move-result v0
invoke-virtual {p1}, Landroid/view/View;->getBottom()I
move-result p1
invoke-virtual {p2, p3, p4, v0, p1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
goto :goto_2
:cond_7
move p5, v0
:goto_2
if-eqz p5, :cond_8
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->invalidate()V
:cond_8
return-void
.end method
.method public onMeasure(II)V
.locals 3
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
const/high16 v1, -0x80000000
if-nez v0, :cond_0
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v0
if-ne v0, v1, :cond_0
iget v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mHeight:I
if-ltz v0, :cond_0
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result p2
invoke-static {v0, p2}, Ljava/lang/Math;->min(II)I
move-result p2
invoke-static {p2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p2
:cond_0
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
if-nez p1, :cond_1
return-void
:cond_1
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result p1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
if-eqz v0, :cond_5
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
move-result v0
const/16 v2, 0x8
if-eq v0, v2, :cond_5
const/high16 v0, 0x40000000 # 2.0f
if-eq p1, v0, :cond_5
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-direct {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->isCollapsed(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_2
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-direct {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredHeightWithMargins(Landroid/view/View;)I
move-result v0
goto :goto_0
:cond_2
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
invoke-direct {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->isCollapsed(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_3
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mContextView:Landroid/view/View;
invoke-direct {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredHeightWithMargins(Landroid/view/View;)I
move-result v0
goto :goto_0
:cond_3
const/4 v0, 0x0
:goto_0
if-ne p1, v1, :cond_4
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result p1
goto :goto_1
:cond_4
const p1, 0x7fffffff
:goto_1
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredWidth()I
move-result p2
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
invoke-direct {p0, v1}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredHeightWithMargins(Landroid/view/View;)I
move-result v1
add-int/2addr v0, v1
invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I
move-result p1
invoke-virtual {p0, p2, p1}, Landroidx/appcompat/widget/ActionBarContainer;->setMeasuredDimension(II)V
:cond_5
return-void
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.locals 0
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onTouchEvent(Landroid/view/MotionEvent;)Z
const/4 p1, 0x1
return p1
.end method
.method public setPrimaryBackground(Landroid/graphics/drawable/Drawable;)V
.locals 4
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->unscheduleDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_0
iput-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-eqz p1, :cond_1
invoke-virtual {p1, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
if-eqz p1, :cond_1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
move-result p1
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {v1}, Landroid/view/View;->getTop()I
move-result v1
iget-object v2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {v2}, Landroid/view/View;->getRight()I
move-result v2
iget-object v3, p0, Landroidx/appcompat/widget/ActionBarContainer;->mActionBarView:Landroid/view/View;
invoke-virtual {v3}, Landroid/view/View;->getBottom()I
move-result v3
invoke-virtual {v0, p1, v1, v2, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
:cond_1
iget-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
const/4 v0, 0x1
const/4 v1, 0x0
if-eqz p1, :cond_2
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
goto :goto_0
:cond_2
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
goto :goto_0
:cond_3
const/4 v0, 0x0
:goto_0
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->setWillNotDraw(Z)V
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->invalidate()V
return-void
.end method
.method public setSplitBackground(Landroid/graphics/drawable/Drawable;)V
.locals 3
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->unscheduleDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_0
iput-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
const/4 v0, 0x0
if-eqz p1, :cond_1
invoke-virtual {p1, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
iget-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
if-eqz p1, :cond_1
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-eqz p1, :cond_1
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredWidth()I
move-result v1
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->getMeasuredHeight()I
move-result v2
invoke-virtual {p1, v0, v0, v1, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
:cond_1
iget-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
const/4 v1, 0x1
if-eqz p1, :cond_2
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
:goto_0
const/4 v0, 0x1
goto :goto_1
:cond_2
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
goto :goto_0
:cond_3
:goto_1
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->setWillNotDraw(Z)V
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->invalidate()V
return-void
.end method
.method public setStackedBackground(Landroid/graphics/drawable/Drawable;)V
.locals 4
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-eqz v0, :cond_0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->unscheduleDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_0
iput-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-eqz p1, :cond_1
invoke-virtual {p1, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
iget-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsStacked:Z
if-eqz p1, :cond_1
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-eqz p1, :cond_1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getLeft()I
move-result v0
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
invoke-virtual {v1}, Landroid/view/View;->getTop()I
move-result v1
iget-object v2, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
invoke-virtual {v2}, Landroid/view/View;->getRight()I
move-result v2
iget-object v3, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
invoke-virtual {v3}, Landroid/view/View;->getBottom()I
move-result v3
invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
:cond_1
iget-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
const/4 v0, 0x1
const/4 v1, 0x0
if-eqz p1, :cond_2
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
goto :goto_0
:cond_2
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
iget-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-nez p1, :cond_3
goto :goto_0
:cond_3
const/4 v0, 0x0
:goto_0
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->setWillNotDraw(Z)V
invoke-virtual {p0}, Landroidx/appcompat/widget/ActionBarContainer;->invalidate()V
return-void
.end method
.method public setTabContainer(Landroidx/appcompat/widget/ScrollingTabContainerView;)V
.locals 2
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
if-eqz v0, :cond_0
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/ActionBarContainer;->removeView(Landroid/view/View;)V
:cond_0
iput-object p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mTabContainer:Landroid/view/View;
if-eqz p1, :cond_1
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ActionBarContainer;->addView(Landroid/view/View;)V
invoke-virtual {p1}, Landroidx/appcompat/widget/ScrollingTabContainerView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
move-result-object v0
const/4 v1, -0x1
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
const/4 v1, -0x2
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
const/4 v0, 0x0
invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ScrollingTabContainerView;->setAllowCollapse(Z)V
:cond_1
return-void
.end method
.method public setTransitioning(Z)V
.locals 0
iput-boolean p1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsTransitioning:Z
if-eqz p1, :cond_0
const/high16 p1, 0x60000
goto :goto_0
:cond_0
const/high16 p1, 0x40000
:goto_0
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ActionBarContainer;->setDescendantFocusability(I)V
return-void
.end method
.method public setVisibility(I)V
.locals 2
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setVisibility(I)V
const/4 v0, 0x0
if-nez p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-eqz v1, :cond_1
invoke-virtual {v1, p1, v0}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
:cond_1
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-eqz v1, :cond_2
invoke-virtual {v1, p1, v0}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
:cond_2
iget-object v1, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-eqz v1, :cond_3
invoke-virtual {v1, p1, v0}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
:cond_3
return-void
.end method
.method public startActionModeForChild(Landroid/view/View;Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;
.locals 0
const/4 p1, 0x0
return-object p1
.end method
.method public startActionModeForChild(Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
.locals 0
if-eqz p3, :cond_0
invoke-super {p0, p1, p2, p3}, Landroid/widget/FrameLayout;->startActionModeForChild(Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
move-result-object p1
return-object p1
:cond_0
const/4 p1, 0x0
return-object p1
.end method
.method protected verifyDrawable(Landroid/graphics/drawable/Drawable;)Z
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mBackground:Landroid/graphics/drawable/Drawable;
if-ne p1, v0, :cond_0
iget-boolean v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
if-eqz v0, :cond_3
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mStackedBackground:Landroid/graphics/drawable/Drawable;
if-ne p1, v0, :cond_1
iget-boolean v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsStacked:Z
if-nez v0, :cond_3
:cond_1
iget-object v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mSplitBackground:Landroid/graphics/drawable/Drawable;
if-ne p1, v0, :cond_2
iget-boolean v0, p0, Landroidx/appcompat/widget/ActionBarContainer;->mIsSplit:Z
if-nez v0, :cond_3
:cond_2
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->verifyDrawable(Landroid/graphics/drawable/Drawable;)Z
move-result p1
if-eqz p1, :cond_4
:cond_3
const/4 p1, 0x1
return p1
:cond_4
const/4 p1, 0x0
return p1
.end method