45 lines
1.3 KiB
Java
45 lines
1.3 KiB
Java
package androidx.transition;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.util.Log;
|
|
import android.view.View;
|
|
import java.lang.reflect.InvocationTargetException;
|
|
import java.lang.reflect.Method;
|
|
|
|
/* loaded from: classes.dex */
|
|
class ViewUtilsApi22 extends ViewUtilsApi21 {
|
|
private static Method i;
|
|
private static boolean j;
|
|
|
|
ViewUtilsApi22() {
|
|
}
|
|
|
|
@Override // androidx.transition.ViewUtilsBase
|
|
public void a(View view, int i2, int i3, int i4, int i5) {
|
|
a();
|
|
Method method = i;
|
|
if (method != null) {
|
|
try {
|
|
method.invoke(view, Integer.valueOf(i2), Integer.valueOf(i3), Integer.valueOf(i4), Integer.valueOf(i5));
|
|
} catch (IllegalAccessException unused) {
|
|
} catch (InvocationTargetException e) {
|
|
throw new RuntimeException(e.getCause());
|
|
}
|
|
}
|
|
}
|
|
|
|
@SuppressLint({"PrivateApi"})
|
|
private void a() {
|
|
if (j) {
|
|
return;
|
|
}
|
|
try {
|
|
i = View.class.getDeclaredMethod("setLeftTopRightBottom", Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
|
|
i.setAccessible(true);
|
|
} catch (NoSuchMethodException e) {
|
|
Log.i("ViewUtilsApi22", "Failed to retrieve setLeftTopRightBottom method", e);
|
|
}
|
|
j = true;
|
|
}
|
|
}
|