what-the-bank/sources/com/google/android/material/circularreveal/cardview/CircularRevealCardView.java

92 lines
2.1 KiB
Java

package com.google.android.material.circularreveal.cardview;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import com.google.android.material.card.MaterialCardView;
import o.GJa;
import o.xgo;
/* loaded from: classes2.dex */
public class CircularRevealCardView extends MaterialCardView implements GJa {
private final xgo f;
public CircularRevealCardView(Context context) {
this(context, null);
}
public CircularRevealCardView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.f = new xgo(this);
}
@Override // o.GJa
public final void b() {
this.f.e();
}
@Override // o.GJa
public final void c() {
this.f.b();
}
@Override // o.GJa
public void setRevealInfo(GJa.LWm lWm) {
this.f.c(lWm);
}
@Override // o.GJa
public final GJa.LWm e() {
return this.f.a();
}
@Override // o.GJa
public void setCircularRevealScrimColor(int i) {
xgo xgoVar = this.f;
xgoVar.c.setColor(i);
xgoVar.e.invalidate();
}
@Override // o.GJa
public final int a() {
return this.f.c.getColor();
}
@Override // o.GJa
public void setCircularRevealOverlayDrawable(Drawable drawable) {
xgo xgoVar = this.f;
xgoVar.a = drawable;
xgoVar.e.invalidate();
}
@Override // android.view.View
public void draw(Canvas canvas) {
xgo xgoVar = this.f;
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.f;
if (xgoVar != null) {
return xgoVar.b.d() && !xgoVar.c();
}
return super.isOpaque();
}
@Override // o.xgo.RVV
public final boolean d() {
return super.isOpaque();
}
}