mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 10:02:28 -06:00
41 lines
1.2 KiB
Java
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();
|
|
}
|
|
}
|