Skip to content

Commit 37c2aa0

Browse files
committed
fix compilation, latest sensor merge break it by using a too recent API
1 parent 765abd2 commit 37c2aa0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/src/org/renpy/android/Hardware.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,15 @@ public static String getHardwareSensors() {
5050
SensorManager sm = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
5151
List<Sensor> allSensors = sm.getSensorList(Sensor.TYPE_ALL);
5252

53-
if (allSensors != null){
54-
53+
if (allSensors != null) {
5554
String resultString = "";
56-
for (Sensor s : allSensors)
57-
{
55+
for (Sensor s : allSensors) {
5856
resultString += String.format("Name=" + s.getName());
5957
resultString += String.format(",Vendor=" + s.getVendor());
6058
resultString += String.format(",Version=" + s.getVersion());
6159
resultString += String.format(",MaximumRange=" + s.getMaximumRange());
62-
resultString += String.format(",MinDelay=" + s.getMinDelay());
60+
// XXX MinDelay is not in the 2.2
61+
//resultString += String.format(",MinDelay=" + s.getMinDelay());
6362
resultString += String.format(",Power=" + s.getPower());
6463
resultString += String.format(",Type=" + s.getType() + "\n");
6564
}

0 commit comments

Comments
 (0)