Add a reverse landscape layout for UDFPS
Bug: 181614043 Test: visual verified 1) Settings -> Security -> Fingerprint 2) Follow the setup flow to find sensor page and enrolling page 3) Rotate your device and see if fingerprint icon is overlapping with the title. Change-Id: Ia1202e9688f2472c8063287164f4fc8f479cdae9
This commit is contained in:
@@ -112,7 +112,11 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase {
|
||||
|
||||
protected int getContentView() {
|
||||
if (mCanAssumeUdfps) {
|
||||
return R.layout.udfps_enroll_find_sensor_layout;
|
||||
if (BiometricUtils.isReverseLandscape(getApplicationContext())) {
|
||||
return R.layout.udfps_enroll_find_sensor_land;
|
||||
} else {
|
||||
return R.layout.udfps_enroll_find_sensor_layout;
|
||||
}
|
||||
}
|
||||
return R.layout.fingerprint_enroll_find_sensor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user