MCPcopy Create free account
hub / github.com/M66B/FairEmail / canFold

Method canFold

app/src/main/java/eu/faircode/email/Helper.java:1755–1763  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

1753 }
1754
1755 static boolean canFold(Context context) {
1756 try {
1757 PackageManager pm = context.getPackageManager();
1758 return pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_HINGE_ANGLE);
1759 } catch (Throwable ex) {
1760 Log.e(ex);
1761 return false;
1762 }
1763 }
1764
1765 static boolean isWatch(Context context) {
1766 if (isSmartwatch == null)

Callers 2

onCreateMethod · 0.95
getAppInfoMethod · 0.95

Calls 1

eMethod · 0.95

Tested by

no test coverage detected