Rabbit-R1/android (non root)/java/sources/com/google/android/material/internal/ManufacturerUtils.java

36 lines
945 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
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) : "";
}
}