This commit is contained in:
M66B
2024-09-25 15:19:23 +02:00
parent c177a6a142
commit 3693693fdc
3 changed files with 14 additions and 3 deletions

View File

@@ -1728,6 +1728,16 @@ public class Helper {
return (Build.DEVICE != null) && Build.DEVICE.matches(".+_cheets|cheets_.+");
}
static boolean canFold(Context context) {
try {
PackageManager pm = context.getPackageManager();
return pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_HINGE_ANGLE);
} catch (Throwable ex) {
Log.e(ex);
return false;
}
}
static boolean isWatch(Context context) {
if (isSmartwatch == null)
isSmartwatch = _isWatch(context);