package com.google.android.material.circularreveal; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.widget.FrameLayout; import o.GJa; import o.xgo; /* loaded from: classes2.dex */ public class CircularRevealFrameLayout extends FrameLayout implements GJa { private final xgo e; public CircularRevealFrameLayout(Context context) { this(context, null); } public CircularRevealFrameLayout(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.e = new xgo(this); } @Override // o.GJa public final void b() { this.e.e(); } @Override // o.GJa public final void c() { this.e.b(); } @Override // o.GJa public final GJa.LWm e() { return this.e.a(); } @Override // o.GJa public void setRevealInfo(GJa.LWm lWm) { this.e.c(lWm); } @Override // o.GJa public final int a() { return this.e.c.getColor(); } @Override // o.GJa public void setCircularRevealScrimColor(int i) { xgo xgoVar = this.e; xgoVar.c.setColor(i); xgoVar.e.invalidate(); } @Override // o.GJa public void setCircularRevealOverlayDrawable(Drawable drawable) { xgo xgoVar = this.e; xgoVar.a = drawable; xgoVar.e.invalidate(); } @Override // android.view.View public void draw(Canvas canvas) { xgo xgoVar = this.e; if (xgoVar != null) { xgoVar.IN_(canvas); } else { super.draw(canvas); } } @Override // o.xgo.RVV public final void IP_(Canvas canvas) { super.draw(canvas); } @Override // android.view.View public boolean isOpaque() { xgo xgoVar = this.e; if (xgoVar != null) { return xgoVar.b.d() && !xgoVar.c(); } return super.isOpaque(); } @Override // o.xgo.RVV public final boolean d() { return super.isOpaque(); } }