Rabbit-R1/original r1/java/sources/androidx/transition/ViewUtilsApi19.java
2024-05-21 17:08:36 -04:00

41 lines
1.2 KiB
Java

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();
}
}