mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 20:07:19 +01:00
40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package com.google.android.material.internal;
|
|
|
|
import android.os.Build;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.RestrictTo;
|
|
import java.util.Locale;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
/* loaded from: classes7.dex */
|
|
public class ManufacturerUtils {
|
|
private static final String LGE = "lge";
|
|
private static final String MEIZU = "meizu";
|
|
private static final String SAMSUNG = "samsung";
|
|
|
|
private ManufacturerUtils() {
|
|
}
|
|
|
|
@NonNull
|
|
private static String getManufacturer() {
|
|
String str = Build.MANUFACTURER;
|
|
return str != null ? str.toLowerCase(Locale.ENGLISH) : "";
|
|
}
|
|
|
|
public static boolean isDateInputKeyboardMissingSeparatorCharacters() {
|
|
return isLGEDevice() || isSamsungDevice();
|
|
}
|
|
|
|
public static boolean isLGEDevice() {
|
|
return getManufacturer().equals(LGE);
|
|
}
|
|
|
|
public static boolean isMeizuDevice() {
|
|
return getManufacturer().equals(MEIZU);
|
|
}
|
|
|
|
public static boolean isSamsungDevice() {
|
|
return getManufacturer().equals(SAMSUNG);
|
|
}
|
|
}
|