remove obsolete sdk version check

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-05-18 17:29:14 +02:00
parent 1230aa7773
commit 0bbf14a2f0
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -170,14 +170,11 @@ public class MagicProximitySensor implements SensorEventListener {
.append(", resolution: ").append(proximitySensor.getResolution())
.append(", max range: ").append(proximitySensor.getMaximumRange())
.append(", min delay: ").append(proximitySensor.getMinDelay());
// Added in API level 20.
info.append(", type: ").append(proximitySensor.getStringType());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
// Added in API level 21.
info.append(", max delay: ").append(proximitySensor.getMaxDelay())
.append(", reporting mode: ").append(proximitySensor.getReportingMode())
.append(", isWakeUpSensor: ").append(proximitySensor.isWakeUpSensor());
}
info.append(", max delay: ").append(proximitySensor.getMaxDelay())
.append(", reporting mode: ").append(proximitySensor.getReportingMode())
.append(", isWakeUpSensor: ").append(proximitySensor.isWakeUpSensor());
Log.d(TAG, info.toString());
}
}