- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
61 lines
1.6 KiB
Java
61 lines
1.6 KiB
Java
package com.mbridge.msdk.dycreator.e;
|
|
|
|
import android.content.Context;
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import java.io.File;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class f {
|
|
private static volatile f a;
|
|
private com.mbridge.msdk.dycreator.a.b b;
|
|
|
|
public static f a(Context context) {
|
|
if (a == null) {
|
|
synchronized (f.class) {
|
|
try {
|
|
if (a == null) {
|
|
a = new f(context.getApplicationContext());
|
|
}
|
|
} finally {
|
|
}
|
|
}
|
|
}
|
|
return a;
|
|
}
|
|
|
|
private f(Context context) {
|
|
this.b = null;
|
|
com.mbridge.msdk.dycreator.a.b a2 = com.mbridge.msdk.dycreator.a.b.a();
|
|
this.b = a2;
|
|
a2.a(context, "");
|
|
}
|
|
|
|
public final View a(String str) {
|
|
if (new File(str).exists()) {
|
|
return this.b.f(str);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final View a(ViewGroup viewGroup, String str) {
|
|
if (viewGroup != null && !TextUtils.isEmpty(str)) {
|
|
if (viewGroup.getId() == str.hashCode()) {
|
|
return viewGroup;
|
|
}
|
|
int childCount = viewGroup.getChildCount();
|
|
for (int i = 0; i < childCount; i++) {
|
|
View childAt = viewGroup.getChildAt(i);
|
|
if (childAt.getId() == str.hashCode()) {
|
|
return childAt;
|
|
}
|
|
if (childAt instanceof ViewGroup) {
|
|
a((ViewGroup) childAt, str);
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|