import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
public class ProximityDetector {
private ProximityListener proximityListener;
<BUG>float max;
public ProximityDetector(ProximityListener proximityListener) {

this.proximityListener = proximityListener;
}</BUG>
SensorEventListener sensorEventListener = new SensorEventListener() {

import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
public class ProximityDetector {
private ProximityListener proximityListener;
float threshold;
public ProximityDetector(float threshold, ProximityListener proximityListener) {
this.proximityListener = proximityListener;
this.threshold = threshold;
}
SensorEventListener sensorEventListener = new SensorEventListener() {
