mirror of
				https://github.com/oplus-giulia-dev/android_hardware_oplus
				synced 2025-11-04 13:55:35 +08:00 
			
		
		
		
	aidl: sensors: Invert value for pickup gesture event
- oplus pickup sensor inverts the value for it to work properly; - Hence, invert the event check for it to work accordingly. thanks to @ cyberknight777 for the idea Test: Build, test lift to check phone. Change-Id: If09de1758823e2246106d6e278ecc80ca5327ee5
This commit is contained in:
		@@ -75,7 +75,7 @@ std::vector<V2_1::Event> HalProxyCallbackBase::processEvents(const std::vector<V
 | 
			
		||||
        const V2_1::SensorInfo& sensor = mCallback->getSensorInfo(event.sensorHandle);
 | 
			
		||||
 | 
			
		||||
        if (sensor.type == V2_1::SensorType::PICK_UP_GESTURE
 | 
			
		||||
            && event.u.scalar != 1) {
 | 
			
		||||
            && event.u.scalar != 0) {
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user