Skip to content

Commit 5445625

Browse files
committed
Disable "InlinedApi" warning
1 parent 8e87818 commit 5445625

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SensingKitLib/src/main/java/org/sensingkit/sensingkitlib/modules/AbstractNativeSensorModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
package org.sensingkit.sensingkitlib.modules;
2323

24+
import android.annotation.SuppressLint;
2425
import android.content.Context;
2526
import android.hardware.Sensor;
2627
import android.hardware.SensorEvent;
@@ -88,6 +89,7 @@ public void stopSensing() {
8889

8990
protected abstract AbstractData buildData(SensorEvent event);
9091

92+
@SuppressLint("InlinedApi") // There is a check in STEP_DETECTOR and STEP_COUNTER
9193
private static int getSensorType(SensorModuleType sensorType) throws SKException{
9294

9395
switch (sensorType) {

0 commit comments

Comments
 (0)