From c2cb46782ce2719c9a7503ab6f7bf6e6bad7d02c Mon Sep 17 00:00:00 2001 From: joshmccloskey Date: Fri, 7 Jun 2019 17:23:44 -0700 Subject: [PATCH] Increased toggling area Test: Tapping the whole area will now toggle the switch. Note that it is no longer possible to individually select the title and subtitle during talkback, but you can select them as a group. Test: Verified that without talkback the user must actually press switch. Fixes: 130398575 Change-Id: I369637f23e41ac6dc4333293b95a5ccae259ee1f --- src/com/android/settings/biometrics/face/FaceEnrollEducation.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/settings/biometrics/face/FaceEnrollEducation.java b/src/com/android/settings/biometrics/face/FaceEnrollEducation.java index 429d93bd5c..16917c7bec 100644 --- a/src/com/android/settings/biometrics/face/FaceEnrollEducation.java +++ b/src/com/android/settings/biometrics/face/FaceEnrollEducation.java @@ -161,6 +161,10 @@ public class FaceEnrollEducation extends BiometricEnrollBase { if (accessibilityEnabled) { accessibilityButton.callOnClick(); + mSwitchDiversity.setClickable(true); + mSwitchDiversity.setOnClickListener(v -> { + mSwitchDiversity.getSwitch().toggle(); + }); } } -- 2.11.0