summaryrefslogtreecommitdiff
path: root/library/main
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2018-02-20 12:55:09 -0800
committerMaurice Lam <yukl@google.com>2018-02-20 12:55:09 -0800
commitb3617935a276aab4c72c11da340a1096d96225d7 (patch)
tree0263e4bd9582092cf26cc5d8561971a3470967d6 /library/main
parent53c263400cd8f58044490994337c27198f03132a (diff)
downloadsetupwizard-b3617935a276aab4c72c11da340a1096d96225d7.tar.gz
Set CheckableLinearLayout to focusable
So that the layout can be expanded using keyboard navigation. Test: ./gradlew test Bug: 72835973 Change-Id: I4fb22e0579c73cb423d52354a5887b13cc1ea77d
Diffstat (limited to 'library/main')
-rw-r--r--library/main/src/com/android/setupwizardlib/view/CheckableLinearLayout.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/main/src/com/android/setupwizardlib/view/CheckableLinearLayout.java b/library/main/src/com/android/setupwizardlib/view/CheckableLinearLayout.java
index 3c678f8..bd0aead 100644
--- a/library/main/src/com/android/setupwizardlib/view/CheckableLinearLayout.java
+++ b/library/main/src/com/android/setupwizardlib/view/CheckableLinearLayout.java
@@ -58,6 +58,10 @@ public class CheckableLinearLayout extends LinearLayout implements Checkable {
super(context, attrs, defStyleAttr, defStyleRes);
}
+ {
+ setFocusable(true);
+ }
+
@Override
protected int[] onCreateDrawableState(int extraSpace) {
if (mChecked) {