Skip to content

Commit

Permalink
sdk: Allow to hide and set a default for status bar DT2S gesture
Browse files Browse the repository at this point in the history
There might be edge cases of devices that have no power button
and no way to control externally connected displays. In such cases,
if display has touch support, DT2S shouldn't be allowed at all.

Change-Id: I3976f138d02f0b6ddf8ce239cb8c3a19ab737b67
  • Loading branch information
bgcngm committed Oct 2, 2023
1 parent 944e76f commit 944cb71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lineage/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<integer name="config_proximityCheckTimeout">250</integer>
<bool name="config_proximityCheckOnWakeEnabledByDefault">false</bool>

<!-- Default values for status bar DT2S gesture -->
<bool name="config_dt2sGestureAvailable">true</bool>
<bool name="config_dt2sGestureEnabledByDefault">true</bool>

<!-- Default values for LiveDisplay -->
<bool name="config_enableLiveDisplay">true</bool>
<integer name="config_dayColorTemperature">6500</integer>
Expand Down
4 changes: 4 additions & 0 deletions lineage/res/res/values/symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<!-- Proximity check on screen on default -->
<java-symbol type="bool" name="config_proximityCheckOnWakeEnabledByDefault" />

<!-- Status bar DT2S gesture -->
<java-symbol type="bool" name="config_dt2sGestureAvailable" />
<java-symbol type="bool" name="config_dt2sGestureEnabledByDefault" />

<!-- LiveDisplay -->
<java-symbol type="bool" name="config_enableLiveDisplay" />
<java-symbol type="string" name="live_display_title" />
Expand Down

0 comments on commit 944cb71

Please sign in to comment.