mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 11:57:18 +01:00
76 lines
2.6 KiB
Java
76 lines
2.6 KiB
Java
package androidx.transition;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.graphics.Matrix;
|
|
import android.view.View;
|
|
import androidx.annotation.DoNotInline;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(21)
|
|
/* loaded from: classes14.dex */
|
|
class ViewUtilsApi21 extends ViewUtilsApi19 {
|
|
private static boolean sTryHiddenSetAnimationMatrix = true;
|
|
private static boolean sTryHiddenTransformMatrixToGlobal = true;
|
|
private static boolean sTryHiddenTransformMatrixToLocal = true;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(29)
|
|
public static class Api29Impl {
|
|
private Api29Impl() {
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void setAnimationMatrix(View view, Matrix matrix) {
|
|
view.setAnimationMatrix(matrix);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void transformMatrixToGlobal(View view, Matrix matrix) {
|
|
view.transformMatrixToGlobal(matrix);
|
|
}
|
|
|
|
@DoNotInline
|
|
public static void transformMatrixToLocal(View view, Matrix matrix) {
|
|
view.transformMatrixToLocal(matrix);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.transition.ViewUtilsApi19
|
|
@SuppressLint({"NewApi"})
|
|
public void setAnimationMatrix(@NonNull View view, @Nullable Matrix matrix) {
|
|
if (sTryHiddenSetAnimationMatrix) {
|
|
try {
|
|
Api29Impl.setAnimationMatrix(view, matrix);
|
|
} catch (NoSuchMethodError unused) {
|
|
sTryHiddenSetAnimationMatrix = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.transition.ViewUtilsApi19
|
|
@SuppressLint({"NewApi"})
|
|
public void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix) {
|
|
if (sTryHiddenTransformMatrixToGlobal) {
|
|
try {
|
|
Api29Impl.transformMatrixToGlobal(view, matrix);
|
|
} catch (NoSuchMethodError unused) {
|
|
sTryHiddenTransformMatrixToGlobal = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.transition.ViewUtilsApi19
|
|
@SuppressLint({"NewApi"})
|
|
public void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix) {
|
|
if (sTryHiddenTransformMatrixToLocal) {
|
|
try {
|
|
Api29Impl.transformMatrixToLocal(view, matrix);
|
|
} catch (NoSuchMethodError unused) {
|
|
sTryHiddenTransformMatrixToLocal = false;
|
|
}
|
|
}
|
|
}
|
|
}
|