42 lines
1.7 KiB
Java
42 lines
1.7 KiB
Java
package c.a.w;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.widget.FrameLayout;
|
|
import android.widget.ImageView;
|
|
import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat;
|
|
import c.a.i.g1;
|
|
import d0.z.d.m;
|
|
/* compiled from: SparkleView.kt */
|
|
public final class c extends FrameLayout {
|
|
public final g1 i;
|
|
public int j;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public c(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, null);
|
|
int i2 = i & 2;
|
|
m.checkNotNullParameter(context, "context");
|
|
LayoutInflater.from(getContext()).inflate(2131558661, this);
|
|
ImageView imageView = (ImageView) findViewById(2131364950);
|
|
if (imageView != null) {
|
|
g1 g1Var = new g1(this, imageView);
|
|
m.checkNotNullExpressionValue(g1Var, "SparkleViewBinding.infla…ater.from(context), this)");
|
|
this.i = g1Var;
|
|
this.j = 2131232308;
|
|
setLayoutParams(new FrameLayout.LayoutParams(-2, -2));
|
|
AnimatedVectorDrawableCompat create = AnimatedVectorDrawableCompat.create(getContext(), this.j);
|
|
if (create != null) {
|
|
m.checkNotNullExpressionValue(create, "AnimatedVectorDrawableCo…tionResId\n ) ?: return");
|
|
imageView.setImageDrawable(create);
|
|
create.registerAnimationCallback(new b(this, create));
|
|
create.start();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(getResources().getResourceName(2131364950)));
|
|
}
|
|
}
|