diff --git a/dmserver/src/sensor_connector.cpp b/dmserver/src/sensor_connector.cpp index 4af4dffb5b66878d6aadb1ff01dff22bc5a3f3e8..857d6a6529ada3941cfd3858e7f7b884126b38f8 100644 --- a/dmserver/src/sensor_connector.cpp +++ b/dmserver/src/sensor_connector.cpp @@ -130,6 +130,10 @@ void GravitySensorSubscriber::HandleGravitySensorEventCallback(SensorEvent *even if (!CheckCallbackTimeInterval() || event == nullptr) { return; } + if (ScreenRotationController::IsScreenRotationLocked()) { + WLOGD("dms: IsScreenRotationLocked true"); + return; + } if (event->sensorTypeId != SENSOR_TYPE_ID_GRAVITY) { WLOGE("dms: Orientation Sensor Callback is not SENSOR_TYPE_ID_GRAVITY"); return;