mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 11:57:18 +01:00
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package androidx.transition;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.view.View;
|
|
import androidx.annotation.DoNotInline;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(23)
|
|
/* loaded from: classes14.dex */
|
|
class ViewUtilsApi23 extends ViewUtilsApi22 {
|
|
private static boolean sTryHiddenSetTransitionVisibility = true;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(29)
|
|
public static class Api29Impl {
|
|
private Api29Impl() {
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setTransitionVisibility(View view, int i) {
|
|
view.setTransitionVisibility(i);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.transition.ViewUtilsApi19
|
|
@SuppressLint({"NewApi"})
|
|
public void setTransitionVisibility(@NonNull View view, int i) {
|
|
if (sTryHiddenSetTransitionVisibility) {
|
|
try {
|
|
Api29Impl.setTransitionVisibility(view, i);
|
|
} catch (NoSuchMethodError unused) {
|
|
sTryHiddenSetTransitionVisibility = false;
|
|
}
|
|
}
|
|
}
|
|
}
|