Files
rr3-apk/decompiled/sources/com/mbridge/msdk/mbnative/controller/f.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

39 lines
1.1 KiB
Java

package com.mbridge.msdk.mbnative.controller;
import android.R;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import androidx.core.view.ViewCompat;
/* loaded from: classes4.dex */
public final class f {
private static View a(View view) {
if (view == null) {
return null;
}
try {
ViewCompat.isAttachedToWindow(view);
} catch (Throwable unused) {
}
try {
View rootView = view.getRootView();
if (rootView == null) {
return null;
}
View findViewById = rootView.findViewById(R.id.content);
return findViewById != null ? findViewById : rootView;
} catch (Throwable unused2) {
return null;
}
}
public static View a(Context context, View view) {
View view2 = null;
if (context != null && (context instanceof Activity)) {
view2 = ((Activity) context).getWindow().getDecorView().findViewById(R.id.content);
}
return view2 != null ? view2 : a(view);
}
}