42 lines
1.3 KiB
Java
42 lines
1.3 KiB
Java
|
package o;
|
||
|
|
||
|
import android.animation.LayoutTransition;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
final class pKz {
|
||
|
static final ViewGroup.MarginLayoutParams b;
|
||
|
LinearLayoutManager e;
|
||
|
|
||
|
static {
|
||
|
ViewGroup.MarginLayoutParams marginLayoutParams = new ViewGroup.MarginLayoutParams(-1, -1);
|
||
|
b = marginLayoutParams;
|
||
|
marginLayoutParams.setMargins(0, 0, 0, 0);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public pKz(LinearLayoutManager linearLayoutManager) {
|
||
|
this.e = linearLayoutManager;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static boolean a(View view) {
|
||
|
if (view instanceof ViewGroup) {
|
||
|
ViewGroup viewGroup = (ViewGroup) view;
|
||
|
LayoutTransition layoutTransition = viewGroup.getLayoutTransition();
|
||
|
if (layoutTransition != null && layoutTransition.isChangingLayout()) {
|
||
|
return true;
|
||
|
}
|
||
|
int childCount = viewGroup.getChildCount();
|
||
|
for (int i = 0; i < childCount; i++) {
|
||
|
if (a(viewGroup.getChildAt(i))) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
}
|