mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 03:47:18 +01:00
27 lines
928 B
Java
27 lines
928 B
Java
package com.google.android.material.animation;
|
|
|
|
import android.graphics.drawable.Drawable;
|
|
import android.util.Property;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public class DrawableAlphaProperty extends Property<Drawable, Integer> {
|
|
public static final Property<Drawable, Integer> DRAWABLE_ALPHA_COMPAT = new DrawableAlphaProperty();
|
|
|
|
private DrawableAlphaProperty() {
|
|
super(Integer.class, "drawableAlphaCompat");
|
|
}
|
|
|
|
@Override // android.util.Property
|
|
@Nullable
|
|
public Integer get(@NonNull Drawable drawable) {
|
|
return Integer.valueOf(drawable.getAlpha());
|
|
}
|
|
|
|
@Override // android.util.Property
|
|
public void set(@NonNull Drawable drawable, @NonNull Integer num) {
|
|
drawable.setAlpha(num.intValue());
|
|
}
|
|
}
|