Merge "Fix sticky firstEventAfterDiscontinuity setting" am: f63f20af72 am: 3906d1422e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2213744 Change-Id: I73b35b8f86a110cfe0b43053dc950e3fe9677f73 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