- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
56 lines
1.3 KiB
Java
56 lines
1.3 KiB
Java
package com.iab.omid.library.unity3d.utils;
|
|
|
|
import android.view.View;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class h {
|
|
public static String a(View view) {
|
|
if (!view.isAttachedToWindow()) {
|
|
return "notAttached";
|
|
}
|
|
int visibility = view.getVisibility();
|
|
if (visibility == 8) {
|
|
return "viewGone";
|
|
}
|
|
if (visibility == 4) {
|
|
return "viewInvisible";
|
|
}
|
|
if (visibility != 0) {
|
|
return "viewNotVisible";
|
|
}
|
|
if (view.getAlpha() == 0.0f) {
|
|
return "viewAlphaZero";
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static View b(View view) {
|
|
Object parent = view.getParent();
|
|
if (parent instanceof View) {
|
|
return (View) parent;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static float c(View view) {
|
|
return view.getZ();
|
|
}
|
|
|
|
public static boolean d(View view) {
|
|
return a(view) == null;
|
|
}
|
|
|
|
public static boolean e(View view) {
|
|
if (!view.isAttachedToWindow() || !view.isShown()) {
|
|
return false;
|
|
}
|
|
while (view != null) {
|
|
if (view.getAlpha() == 0.0f) {
|
|
return false;
|
|
}
|
|
view = b(view);
|
|
}
|
|
return true;
|
|
}
|
|
}
|