mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 09:32:27 -06:00
36 lines
945 B
Java
36 lines
945 B
Java
|
package com.google.android.material.internal;
|
||
|
|
||
|
import android.os.Build;
|
||
|
import java.util.Locale;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class ManufacturerUtils {
|
||
|
private static final String LGE = "lge";
|
||
|
private static final String MEIZU = "meizu";
|
||
|
private static final String SAMSUNG = "samsung";
|
||
|
|
||
|
private ManufacturerUtils() {
|
||
|
}
|
||
|
|
||
|
public static boolean isMeizuDevice() {
|
||
|
return getManufacturer().equals(MEIZU);
|
||
|
}
|
||
|
|
||
|
public static boolean isLGEDevice() {
|
||
|
return getManufacturer().equals(LGE);
|
||
|
}
|
||
|
|
||
|
public static boolean isSamsungDevice() {
|
||
|
return getManufacturer().equals(SAMSUNG);
|
||
|
}
|
||
|
|
||
|
public static boolean isDateInputKeyboardMissingSeparatorCharacters() {
|
||
|
return isLGEDevice() || isSamsungDevice();
|
||
|
}
|
||
|
|
||
|
private static String getManufacturer() {
|
||
|
String str = Build.MANUFACTURER;
|
||
|
return str != null ? str.toLowerCase(Locale.ENGLISH) : "";
|
||
|
}
|
||
|
}
|