Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a6c764c7 authored by Chris Kuiper's avatar Chris Kuiper
Browse files

DisplayConfig: Add flag-protected option to select Fusion Proximity sensor.

This adds to capability to add a second Proximity Sensor
configuration that is selected based on an aconfig flag.

In detail:

1) Adds a new flag "useFusionProxSensor" that controls whether or not
   to use a Fusion Proximity sensor if configured.

2) Adds a new attribute "featureFlag" to the sensorDetails XML
   element that marks the element to be used if a corresponding
   aconfig flag is set.

3) Allows up to two "proxSensor" elements to be given instead of one.
   This allows to provide two different Proximity sensor
   configurations, one to be used if both the useFusionProxSensor
   flag and featureFlag attribute are set and matching, and another
   if not.

Bug: 306203895
Test: Pushing different XML config files, confirming via dumpsys and
      manual testing.

Change-Id: Icb7a1c93d38385b48ba27d9747cae9cd36c4dc03
parent f5a43e55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment