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

This commit is contained in:
Josh Tsuji
2021-03-30 23:19:32 +00:00
committed by Android (Google) Code Review
2 changed files with 16 additions and 1 deletions

View File

@@ -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>

View File

@@ -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