public void onSensorChanged(android.hardware.SensorEvent p9)
    {
        try {
            com.maximintegrated.bio.uv.MaximUVSensorEventListener v0_8 = p9.sensor.getType();
        } catch (com.maximintegrated.bio.uv.MaximUVSensorEventListener v0_6) {
            throw v0_6;
        }
        if (v0_8 == 6) {
            this.algorithm_data_in[7] = p9.values[0];
        } else {
            switch (v0_8) {
                case 1:
                    this.algorithm_data_in[4] = p9.values[0];
                    this.algorithm_data_in[5] = p9.values[1];
                    this.algorithm_data_in[6] = p9.values[2];
                    break;
                case 2:
                    this.algorithm_data_in[8] = p9.values[0];
                    this.algorithm_data_in[9] = p9.values[1];
                    this.algorithm_data_in[10] = p9.values[2];
                    break;
                default:
            }
        }
        if ((p9.sensor.getType() == this.sensor_type) && (this.uvListener != null)) {
            this.algorithm_data_in[0] = p9.values[0];
            if (this.location != null) {
                this.algorithm_data_in[1] = ((float) this.location.getLatitude());
                this.algorithm_data_in[2] = ((float) this.location.getLongitude());
                this.algorithm_data_in[3] = ((float) this.location.getAltitude());
            } else {
                android.util.Log.d(MaximUV, location null);
                this.algorithm_data_in[1] = -1082130432;
                this.algorithm_data_in[2] = -1082130432;
                this.algorithm_data_in[3] = -1082130432;
            }
            if (!com.maximintegrated.bio.uv.MaximUVSensor.isJniLoaded) {
                android.util.Log.e(MaximUV, JNI not loaded calling runAlgorithm failed);
            } else {
                this.runAlgorithm(this.algorithm_data_in, this.algorithm_data_out);
            }
            this.uvEvent.RAW = ((int) this.algorithm_data_out[0]);
            this.uvEvent.UVA = ((double) this.algorithm_data_out[2]);
            this.uvEvent.UVB = ((double) this.algorithm_data_out[3]);
            this.uvEvent.UVIndex = ((double) this.algorithm_data_out[1]);
            this.uvEvent.UVIntensity = ((double) this.algorithm_data_out[4]);
            this.uvListener.onMaximUVSensorChanged(this.uvEvent);
        }
        return;
    }