what-the-bank/sources/o/CfC.java

30 lines
801 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
/* loaded from: classes2.dex */
public final class CfC {
public static RecyclerView.zJl a(View view) {
RecyclerView recyclerView;
View b;
View view2 = view;
while (view2 != null) {
Object parent = view2.getParent();
if (parent instanceof RecyclerView) {
recyclerView = (RecyclerView) parent;
break;
}
if (!(parent instanceof View)) {
break;
}
view2 = (View) parent;
}
recyclerView = null;
if (recyclerView == null || (b = recyclerView.b(view)) == null) {
return null;
}
return recyclerView.g(b);
}
}