- 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
26 lines
796 B
Java
26 lines
796 B
Java
package com.iab.omid.library.unity3d.utils;
|
|
|
|
import android.app.UiModeManager;
|
|
import android.content.Context;
|
|
import com.iab.omid.library.unity3d.adsession.DeviceCategory;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class a {
|
|
private static UiModeManager a;
|
|
|
|
public static DeviceCategory a() {
|
|
UiModeManager uiModeManager = a;
|
|
if (uiModeManager == null) {
|
|
return DeviceCategory.OTHER;
|
|
}
|
|
int currentModeType = uiModeManager.getCurrentModeType();
|
|
return currentModeType != 1 ? currentModeType != 4 ? DeviceCategory.OTHER : DeviceCategory.CTV : DeviceCategory.MOBILE;
|
|
}
|
|
|
|
public static void a(Context context) {
|
|
if (context != null) {
|
|
a = (UiModeManager) context.getSystemService("uimode");
|
|
}
|
|
}
|
|
}
|