Skip to content

Commit

Permalink
spes: overlays: fix power button overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
ap4ss3rby committed May 2, 2023
1 parent 5f62db2 commit 05a7972
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@
<integer name="config_defaultRefreshRateInZone">90</integer>

<!-- Indicates whether device has a power button fingerprint sensor. -->
<bool name="config_is_powerbutton_fps" translatable="false" >true</bool>
<bool name="config_is_powerbutton_fps" translatable="true" >true</bool>

<!-- If not zero, limits the internal screen recorder's framerate to the set value. -->
<integer name="config_screenRecorderMaxFramerate">90</integer>
Expand Down
17 changes: 17 additions & 0 deletions overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,21 @@

<!-- Burn-in protection -->
<dimen name="burnin_protection_horizontal_shift">1dp</dimen>

<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor.
By default, this is set to @null to use the horizontal center of the screen. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>

<!-- Location on the screen of the center of the physical power button. This is a reasonable
default that should be overridden by device-specific overlays. -->
<dimen name="physical_power_button_center_screen_location_y">1087px</dimen>

<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
For devices with sensors on the back of the device, this corresponds to the location on the
screen directly in front of the sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_y">@dimen/physical_power_button_center_screen_location_y</dimen>
</resources>

0 comments on commit 05a7972

Please sign in to comment.