package androidx.appcompat.widget; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Outline; import android.graphics.drawable.Drawable; /* loaded from: classes.dex */ class ActionBarBackgroundDrawable extends Drawable { final ActionBarContainer mContainer; @Override // android.graphics.drawable.Drawable public int getOpacity() { return 0; } @Override // android.graphics.drawable.Drawable public void setAlpha(int i) { } @Override // android.graphics.drawable.Drawable public void setColorFilter(ColorFilter colorFilter) { } public ActionBarBackgroundDrawable(ActionBarContainer actionBarContainer) { this.mContainer = actionBarContainer; } @Override // android.graphics.drawable.Drawable public void draw(Canvas canvas) { if (this.mContainer.mIsSplit) { if (this.mContainer.mSplitBackground != null) { this.mContainer.mSplitBackground.draw(canvas); } } else { if (this.mContainer.mBackground != null) { this.mContainer.mBackground.draw(canvas); } if (this.mContainer.mStackedBackground == null || !this.mContainer.mIsStacked) { return; } this.mContainer.mStackedBackground.draw(canvas); } } @Override // android.graphics.drawable.Drawable public void getOutline(Outline outline) { if (this.mContainer.mIsSplit) { if (this.mContainer.mSplitBackground != null) { Api21Impl.getOutline(this.mContainer.mBackground, outline); } } else if (this.mContainer.mBackground != null) { Api21Impl.getOutline(this.mContainer.mBackground, outline); } } /* loaded from: classes.dex */ private static class Api21Impl { private Api21Impl() { } public static void getOutline(Drawable drawable, Outline outline) { drawable.getOutline(outline); } } }