Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d37e1e68 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 3cdccc6f: Merge "fix a typo in SensorService" into jb-mr1-dev

* commit '3cdccc6f':
  fix a typo in SensorService
parents bda132e3 3cdccc6f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -462,6 +462,9 @@ status_t SensorService::enable(const sp<SensorEventConnection>& connection,
                if (mActiveConnections.indexOf(connection) < 0) {
                    mActiveConnections.add(connection);
                }
            } else {
                ALOGW("sensor %08x already enabled in connection %p (ignoring)",
                        handle, connection.get());
            }
        }
    }
@@ -567,7 +570,7 @@ void SensorService::SensorEventConnection::onFirstRef()

bool SensorService::SensorEventConnection::addSensor(int32_t handle) {
    Mutex::Autolock _l(mConnectionLock);
    if (mSensorInfo.indexOf(handle) <= 0) {
    if (mSensorInfo.indexOf(handle) < 0) {
        mSensorInfo.add(handle);
        return true;
    }