Skip to content

Commit

Permalink
SystemUI: SidefpsController: Use location from resources
Browse files Browse the repository at this point in the history
 * dont hardcode it

Change-Id: I967e7e16afcafbe580075d59c8e4a865b45e0345
  • Loading branch information
adithya2306 authored and Undying-yueyue committed Jan 27, 2022
1 parent 7b9e486 commit 8f95575
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ private FingerprintSensorPropertiesInternal findFirstSidefps() {
// TODO(b/188690214): L155-L173 can be removed once sensorLocationX,
// sensorLocationY, and sensorRadius are defined in sensorProps by the HAL
int sensorLocationX = 25;
int sensorLocationY = 610;
int sensorLocationY = mContext.getResources().getDimensionPixelSize(
R.dimen.physical_fingerprint_sensor_center_screen_location_y);
int sensorRadius = 112;

FingerprintSensorPropertiesInternal tempProps =
Expand Down

0 comments on commit 8f95575

Please sign in to comment.