mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
remove obsolete sdk version check
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
1230aa7773
commit
0bbf14a2f0
1 changed files with 4 additions and 7 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue