NetMirror.apk
Download file
package h2;
import android.app.UiModeManager;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;
/* JADX INFO: renamed from: h2.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0557b {
/* JADX INFO: renamed from: a, reason: collision with root package name */
private final Context f9486a;
public C0557b(Context context) {
this.f9486a = context;
}
private com.learnium.RNDeviceInfo.a b() {
WindowManager windowManager = (WindowManager) this.f9486a.getSystemService("window");
if (windowManager == null) {
return com.learnium.RNDeviceInfo.a.UNKNOWN;
}
DisplayMetrics displayMetrics = new DisplayMetrics();
windowManager.getDefaultDisplay().getRealMetrics(displayMetrics);
double dSqrt = Math.sqrt(Math.pow(((double) displayMetrics.widthPixels) / ((double) displayMetrics.xdpi), 2.0d) + Math.pow(((double) displayMetrics.heightPixels) / ((double) displayMetrics.ydpi), 2.0d));
return (dSqrt < 3.0d || dSqrt > 6.9d) ? (dSqrt <= 6.9d || dSqrt > 18.0d) ? com.learnium.RNDeviceInfo.a.UNKNOWN : com.learnium.RNDeviceInfo.a.TABLET : com.learnium.RNDeviceInfo.a.HANDSET;
}
private com.learnium.RNDeviceInfo.a c() {
int i3 = this.f9486a.getResources().getConfiguration().smallestScreenWidthDp;
return i3 == 0 ? com.learnium.RNDeviceInfo.a.UNKNOWN : i3 >= 600 ? com.learnium.RNDeviceInfo.a.TABLET : com.learnium.RNDeviceInfo.a.HANDSET;
}
public com.learnium.RNDeviceInfo.a a() {
if (this.f9486a.getPackageManager().hasSystemFeature("amazon.hardware.fire_tv")) {
return com.learnium.RNDeviceInfo.a.TV;
}
UiModeManager uiModeManager = (UiModeManager) this.f9486a.getSystemService("uimode");
if (uiModeManager != null && uiModeManager.getCurrentModeType() == 4) {
return com.learnium.RNDeviceInfo.a.TV;
}
com.learnium.RNDeviceInfo.a aVarC = c();
return (aVarC == null || aVarC == com.learnium.RNDeviceInfo.a.UNKNOWN) ? b() : aVarC;
}
public boolean d() {
return a() == com.learnium.RNDeviceInfo.a.TABLET;
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file