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

Commit 48604fb0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "If the handle does not exist, it should return false" into main am:...

Merge "If the handle does not exist, it should return false" into main am: 16fbe775 am: eba33c37

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3249596



Change-Id: Icc6318e3fbb341856ccd6f23ffdf1aff0f3309b5
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 21b72cff eba33c37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ bool SensorService::SensorEventConnection::addSensor(int32_t handle) {

bool SensorService::SensorEventConnection::removeSensor(int32_t handle) {
    Mutex::Autolock _l(mConnectionLock);
    if (mSensorInfo.erase(handle) >= 0) {
    if (mSensorInfo.erase(handle) > 0) {
        return true;
    }
    return false;