mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 20:07:19 +01:00
38 lines
1.3 KiB
Java
38 lines
1.3 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(22)
|
|
/* loaded from: classes14.dex */
|
|
class ViewUtilsApi22 extends ViewUtilsApi21 {
|
|
private static boolean sTryHiddenSetLeftTopRightBottom = true;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(29)
|
|
public static class Api29Impl {
|
|
private Api29Impl() {
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setLeftTopRightBottom(View view, int i, int i2, int i3, int i4) {
|
|
view.setLeftTopRightBottom(i, i2, i3, i4);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.transition.ViewUtilsApi19
|
|
@SuppressLint({"NewApi"})
|
|
public void setLeftTopRightBottom(@NonNull View view, int i, int i2, int i3, int i4) {
|
|
if (sTryHiddenSetLeftTopRightBottom) {
|
|
try {
|
|
Api29Impl.setLeftTopRightBottom(view, i, i2, i3, i4);
|
|
} catch (NoSuchMethodError unused) {
|
|
sTryHiddenSetLeftTopRightBottom = false;
|
|
}
|
|
}
|
|
}
|
|
}
|