mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 15:47:18 +00:00
Directly register for prox as the secondary sensor
Instead of binned brightness. The new binned brightness sensor doesn't report prox, so we won't see the white dot when we're in AOD2 (ie: docked, pulsing notification). Test: manual Bug: 194151347 Change-Id: I2c7547334889dbda462a075d62504c9e745b118a
This commit is contained in:
@@ -44,14 +44,13 @@
|
||||
noisy sensors. -->
|
||||
<item name="proximity_sensor_threshold_latch" translatable="false" format="float" type="dimen">24</item>
|
||||
|
||||
<string name="proximity_sensor_secondary_type" translatable="false">com.google.sensor.binned_brightness</string>
|
||||
<string name="proximity_sensor_secondary_type" translatable="false">android.sensor.proximity</string>
|
||||
<item name="proximity_sensor_secondary_threshold" translatable="false" format="float"
|
||||
type="dimen">1</item>
|
||||
type="dimen">5</item>
|
||||
|
||||
<!-- Doze: can we assume the pickup sensor includes a proximity check? -->
|
||||
<bool name="doze_pickup_performs_proximity_check">true</bool>
|
||||
|
||||
|
||||
<!-- Doze: only register sensors that use prox when device is in certain Display states. This
|
||||
may delay registering sensors when device first shows dozing UI but the
|
||||
Display & Power state hasn't changed to low-power mode yet. -->
|
||||
|
||||
Reference in New Issue
Block a user