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

Commit b7ff942c authored by Josh Tsuji's avatar Josh Tsuji Committed by Automerger Merge Worker
Browse files

Merge "Use the physical location of the power button for the power button...

Merge "Use the physical location of the power button for the power button animation." into sc-dev am: 2d32f92f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14035005

Change-Id: I80af86c155c2e58b4759405b8aee8eebbffb8d14
parents fdd57fe2 2d32f92f
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1398,4 +1398,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
@@ -2971,7 +2971,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