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
This commit is contained in:
joshmccloskey
2019-06-07 17:23:44 -07:00
committed by Joshua Mccloskey
parent 03c47e7687
commit c2cb46782c

View File

@@ -161,6 +161,10 @@ public class FaceEnrollEducation extends BiometricEnrollBase {
if (accessibilityEnabled) {
accessibilityButton.callOnClick();
mSwitchDiversity.setClickable(true);
mSwitchDiversity.setOnClickListener(v -> {
mSwitchDiversity.getSwitch().toggle();
});
}
}