Files
rr3-apk/decompiled/sources/androidx/appcompat/widget/ActionBarBackgroundDrawable.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

80 lines
2.4 KiB
Java

package androidx.appcompat.widget;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Outline;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
/* 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(@NonNull Canvas canvas) {
ActionBarContainer actionBarContainer = this.mContainer;
if (actionBarContainer.mIsSplit) {
Drawable drawable = actionBarContainer.mSplitBackground;
if (drawable != null) {
drawable.draw(canvas);
return;
}
return;
}
Drawable drawable2 = actionBarContainer.mBackground;
if (drawable2 != null) {
drawable2.draw(canvas);
}
ActionBarContainer actionBarContainer2 = this.mContainer;
Drawable drawable3 = actionBarContainer2.mStackedBackground;
if (drawable3 == null || !actionBarContainer2.mIsStacked) {
return;
}
drawable3.draw(canvas);
}
@Override // android.graphics.drawable.Drawable
@RequiresApi(21)
public void getOutline(@NonNull Outline outline) {
ActionBarContainer actionBarContainer = this.mContainer;
if (actionBarContainer.mIsSplit) {
if (actionBarContainer.mSplitBackground != null) {
Api21Impl.getOutline(actionBarContainer.mBackground, outline);
}
} else {
Drawable drawable = actionBarContainer.mBackground;
if (drawable != null) {
Api21Impl.getOutline(drawable, outline);
}
}
}
@RequiresApi(21)
public static class Api21Impl {
private Api21Impl() {
}
public static void getOutline(Drawable drawable, Outline outline) {
drawable.getOutline(outline);
}
}
}