Initial commit
This commit is contained in:
39
sources/androidx/transition/ViewGroupUtilsApi18.java
Normal file
39
sources/androidx/transition/ViewGroupUtilsApi18.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package androidx.transition;
|
||||
|
||||
import android.util.Log;
|
||||
import android.view.ViewGroup;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class ViewGroupUtilsApi18 {
|
||||
private static Method a;
|
||||
private static boolean b;
|
||||
|
||||
static void a(ViewGroup viewGroup, boolean z) {
|
||||
a();
|
||||
Method method = a;
|
||||
if (method != null) {
|
||||
try {
|
||||
method.invoke(viewGroup, Boolean.valueOf(z));
|
||||
} catch (IllegalAccessException e) {
|
||||
Log.i("ViewUtilsApi18", "Failed to invoke suppressLayout method", e);
|
||||
} catch (InvocationTargetException e2) {
|
||||
Log.i("ViewUtilsApi18", "Error invoking suppressLayout method", e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void a() {
|
||||
if (b) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
a = ViewGroup.class.getDeclaredMethod("suppressLayout", Boolean.TYPE);
|
||||
a.setAccessible(true);
|
||||
} catch (NoSuchMethodException e) {
|
||||
Log.i("ViewUtilsApi18", "Failed to retrieve suppressLayout method", e);
|
||||
}
|
||||
b = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user