Rabbit-R1/original r1/java/sources/androidx/transition/ViewUtilsApi19.java

42 lines
1.2 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.transition;
import android.view.View;
/* loaded from: classes2.dex */
class ViewUtilsApi19 extends ViewUtilsBase {
private static boolean sTryHiddenTransitionAlpha = true;
@Override // androidx.transition.ViewUtilsBase
public void clearNonTransitionAlpha(View view) {
}
@Override // androidx.transition.ViewUtilsBase
public void saveNonTransitionAlpha(View view) {
}
@Override // androidx.transition.ViewUtilsBase
public void setTransitionAlpha(View view, float f) {
if (sTryHiddenTransitionAlpha) {
try {
view.setTransitionAlpha(f);
return;
} catch (NoSuchMethodError unused) {
sTryHiddenTransitionAlpha = false;
}
}
view.setAlpha(f);
}
@Override // androidx.transition.ViewUtilsBase
public float getTransitionAlpha(View view) {
if (sTryHiddenTransitionAlpha) {
try {
return view.getTransitionAlpha();
} catch (NoSuchMethodError unused) {
sTryHiddenTransitionAlpha = false;
}
}
return view.getAlpha();
}
}