Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package com.google.android.material.animation;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.Property;
import java.util.WeakHashMap;
/* loaded from: classes.dex */
public class DrawableAlphaProperty extends Property<Drawable, Integer> {
public static final Property<Drawable, Integer> b = new DrawableAlphaProperty();
private final WeakHashMap<Drawable, Integer> a;
private DrawableAlphaProperty() {
super(Integer.class, "drawableAlphaCompat");
this.a = new WeakHashMap<>();
}
@Override // android.util.Property
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public Integer get(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 19) {
return Integer.valueOf(drawable.getAlpha());
}
if (this.a.containsKey(drawable)) {
return this.a.get(drawable);
}
return 255;
}
@Override // android.util.Property
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public void set(Drawable drawable, Integer num) {
if (Build.VERSION.SDK_INT < 19) {
this.a.put(drawable, num);
}
drawable.setAlpha(num.intValue());
}
}