137 lines
5.9 KiB
Java
137 lines
5.9 KiB
Java
package androidx.transition;
|
|
|
|
import android.animation.LayoutTransition;
|
|
import android.util.Log;
|
|
import com.ubt.jimu.base.dialog.SimpleQuestionDialog;
|
|
import java.lang.reflect.Field;
|
|
import java.lang.reflect.InvocationTargetException;
|
|
import java.lang.reflect.Method;
|
|
|
|
/* loaded from: classes.dex */
|
|
class ViewGroupUtilsApi14 {
|
|
private static LayoutTransition a;
|
|
private static Field b;
|
|
private static boolean c;
|
|
private static Method d;
|
|
private static boolean e;
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x0085 */
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x0092 */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:? A[RETURN, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
static void a(android.view.ViewGroup r5, boolean r6) {
|
|
/*
|
|
android.animation.LayoutTransition r0 = androidx.transition.ViewGroupUtilsApi14.a
|
|
r1 = 1
|
|
r2 = 0
|
|
r3 = 0
|
|
if (r0 != 0) goto L2a
|
|
androidx.transition.ViewGroupUtilsApi14$1 r0 = new androidx.transition.ViewGroupUtilsApi14$1
|
|
r0.<init>()
|
|
androidx.transition.ViewGroupUtilsApi14.a = r0
|
|
android.animation.LayoutTransition r0 = androidx.transition.ViewGroupUtilsApi14.a
|
|
r4 = 2
|
|
r0.setAnimator(r4, r3)
|
|
android.animation.LayoutTransition r0 = androidx.transition.ViewGroupUtilsApi14.a
|
|
r0.setAnimator(r2, r3)
|
|
android.animation.LayoutTransition r0 = androidx.transition.ViewGroupUtilsApi14.a
|
|
r0.setAnimator(r1, r3)
|
|
android.animation.LayoutTransition r0 = androidx.transition.ViewGroupUtilsApi14.a
|
|
r4 = 3
|
|
r0.setAnimator(r4, r3)
|
|
android.animation.LayoutTransition r0 = androidx.transition.ViewGroupUtilsApi14.a
|
|
r4 = 4
|
|
r0.setAnimator(r4, r3)
|
|
L2a:
|
|
if (r6 == 0) goto L4a
|
|
android.animation.LayoutTransition r6 = r5.getLayoutTransition()
|
|
if (r6 == 0) goto L44
|
|
boolean r0 = r6.isRunning()
|
|
if (r0 == 0) goto L3b
|
|
a(r6)
|
|
L3b:
|
|
android.animation.LayoutTransition r0 = androidx.transition.ViewGroupUtilsApi14.a
|
|
if (r6 == r0) goto L44
|
|
int r0 = androidx.transition.R$id.transition_layout_save
|
|
r5.setTag(r0, r6)
|
|
L44:
|
|
android.animation.LayoutTransition r6 = androidx.transition.ViewGroupUtilsApi14.a
|
|
r5.setLayoutTransition(r6)
|
|
goto L9a
|
|
L4a:
|
|
r5.setLayoutTransition(r3)
|
|
boolean r6 = androidx.transition.ViewGroupUtilsApi14.c
|
|
java.lang.String r0 = "ViewGroupUtilsApi14"
|
|
if (r6 != 0) goto L6a
|
|
java.lang.Class<android.view.ViewGroup> r6 = android.view.ViewGroup.class
|
|
java.lang.String r4 = "mLayoutSuppressed"
|
|
java.lang.reflect.Field r6 = r6.getDeclaredField(r4) // Catch: java.lang.NoSuchFieldException -> L63
|
|
androidx.transition.ViewGroupUtilsApi14.b = r6 // Catch: java.lang.NoSuchFieldException -> L63
|
|
java.lang.reflect.Field r6 = androidx.transition.ViewGroupUtilsApi14.b // Catch: java.lang.NoSuchFieldException -> L63
|
|
r6.setAccessible(r1) // Catch: java.lang.NoSuchFieldException -> L63
|
|
goto L68
|
|
L63:
|
|
java.lang.String r6 = "Failed to access mLayoutSuppressed field by reflection"
|
|
android.util.Log.i(r0, r6)
|
|
L68:
|
|
androidx.transition.ViewGroupUtilsApi14.c = r1
|
|
L6a:
|
|
java.lang.reflect.Field r6 = androidx.transition.ViewGroupUtilsApi14.b
|
|
if (r6 == 0) goto L83
|
|
boolean r6 = r6.getBoolean(r5) // Catch: java.lang.IllegalAccessException -> L7e
|
|
if (r6 == 0) goto L7c
|
|
java.lang.reflect.Field r1 = androidx.transition.ViewGroupUtilsApi14.b // Catch: java.lang.IllegalAccessException -> L7a
|
|
r1.setBoolean(r5, r2) // Catch: java.lang.IllegalAccessException -> L7a
|
|
goto L7c
|
|
L7a:
|
|
r2 = r6
|
|
goto L7e
|
|
L7c:
|
|
r2 = r6
|
|
goto L83
|
|
L7e:
|
|
java.lang.String r6 = "Failed to get mLayoutSuppressed field by reflection"
|
|
android.util.Log.i(r0, r6)
|
|
L83:
|
|
if (r2 == 0) goto L88
|
|
r5.requestLayout()
|
|
L88:
|
|
int r6 = androidx.transition.R$id.transition_layout_save
|
|
java.lang.Object r6 = r5.getTag(r6)
|
|
android.animation.LayoutTransition r6 = (android.animation.LayoutTransition) r6
|
|
if (r6 == 0) goto L9a
|
|
int r0 = androidx.transition.R$id.transition_layout_save
|
|
r5.setTag(r0, r3)
|
|
r5.setLayoutTransition(r6)
|
|
L9a:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.transition.ViewGroupUtilsApi14.a(android.view.ViewGroup, boolean):void");
|
|
}
|
|
|
|
private static void a(LayoutTransition layoutTransition) {
|
|
if (!e) {
|
|
try {
|
|
d = LayoutTransition.class.getDeclaredMethod(SimpleQuestionDialog.KEY_CANCELBUTTON, new Class[0]);
|
|
d.setAccessible(true);
|
|
} catch (NoSuchMethodException unused) {
|
|
Log.i("ViewGroupUtilsApi14", "Failed to access cancel method by reflection");
|
|
}
|
|
e = true;
|
|
}
|
|
Method method = d;
|
|
if (method != null) {
|
|
try {
|
|
method.invoke(layoutTransition, new Object[0]);
|
|
} catch (IllegalAccessException unused2) {
|
|
Log.i("ViewGroupUtilsApi14", "Failed to access cancel method by reflection");
|
|
} catch (InvocationTargetException unused3) {
|
|
Log.i("ViewGroupUtilsApi14", "Failed to invoke cancel method by reflection");
|
|
}
|
|
}
|
|
}
|
|
}
|