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

Commit 026c34f6 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Use the physical location of the power button for the power button animation.

Bug: 181020504
Test: manual
Change-Id: I8bc27b0276c680cbcabc0a853c833a7536f15a45
parent 948bd864
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1396,4 +1396,19 @@
    <dimen name="rounded_slider_track_width">8dp</dimen>
    <!-- rounded_slider_track_width / 2 -->
    <dimen name="rounded_slider_track_corner_radius">4dp</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">620px</dimen>

    <!-- Location on the screen of the center of the physical volume up/down buttons. This is a
    reasonable default that should be overridden by device-specific overlays. -->
    <dimen name="physical_volume_up_button_center_screen_location_y">950px</dimen>
    <dimen name="physical_volume_down_button_center_screen_location_y">1150px</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">610px</dimen>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -2964,7 +2964,7 @@ public class StatusBar extends SystemUI implements DemoMode,
        }

        mPowerButtonReveal = new PowerButtonReveal(mContext.getResources().getDimensionPixelSize(
                R.dimen.global_actions_top_padding));
                com.android.systemui.R.dimen.physical_power_button_center_screen_location_y));
    }

    // Visibility reporting