OSDN Git Service

FingerprintEnrollFindSensor: Don't overlay front for side sensors
authorPaul Keith <javelinanddart@gmail.com>
Fri, 26 Jan 2018 21:23:03 +0000 (22:23 +0100)
committerPaul Keith <javelinanddart@gmail.com>
Fri, 26 Jan 2018 21:29:22 +0000 (22:29 +0100)
* Both the base image and the base image + overlay are equally nonsense
  for devices with a side fingerprint scanner, but for those that overlay
  a custom fingerprint enrollment graphic, this image overlay wreaks havoc
* Only set this overlay to be visible if the sensor is on the front, to
  allow devices with side sensors to only overlay the base image

Change-Id: I7cbcea4830d4526cf9f7d139e7f84f21117fa9c4

src/com/android/settings/fingerprint/FingerprintEnrollFindSensor.java

index 27c6be5..f60c400 100644 (file)
@@ -74,7 +74,7 @@ public class FingerprintEnrollFindSensor extends FingerprintEnrollBase {
         message.setText(getString(
                 R.string.security_settings_fingerprint_enroll_find_sensor_message_cm,
                 location));
-        if (sensorLocation != SENSOR_LOCATION_BACK) {
+        if (sensorLocation == SENSOR_LOCATION_FRONT) {
             findViewById(R.id.fingerprint_sensor_location_front_overlay)
                     .setVisibility(View.VISIBLE);
         }