Merge "Fix sticky firstEventAfterDiscontinuity setting" am: f63f20af72
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2213744 Change-Id: Ifd22bc032b5a4e029ee1a6b9c71d711785a28086 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -882,6 +882,7 @@ public class SystemSensorManager extends SensorManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Indicate if the discontinuity count changed
|
// Indicate if the discontinuity count changed
|
||||||
|
t.firstEventAfterDiscontinuity = false;
|
||||||
if (t.sensor.getType() == Sensor.TYPE_HEAD_TRACKER) {
|
if (t.sensor.getType() == Sensor.TYPE_HEAD_TRACKER) {
|
||||||
final int lastCount = mSensorDiscontinuityCounts.get(handle);
|
final int lastCount = mSensorDiscontinuityCounts.get(handle);
|
||||||
final int curCount = Float.floatToIntBits(values[6]);
|
final int curCount = Float.floatToIntBits(values[6]);
|
||||||
|
|||||||
Reference in New Issue
Block a user